Skip to content

Commit

Permalink
补充 Paypal 支付 (#421)
Browse files Browse the repository at this point in the history
PaymentSource参数
  • Loading branch information
robot-nan authored Sep 23, 2024
1 parent dc2edbd commit af123c2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions paypal/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,45 @@ type PaymentSource struct {
P24 *P24 `json:"p24,omitempty"`
Sofort *Sofort `json:"sofort,omitempty"`
Trustly *Trustly `json:"trustly,omitempty"`
Paypal *Paypal `json:"paypal,omitempty"`
}
type Paypal struct {
EmailAddress string `json:"email_address"`
AccountID string `json:"account_id"`
AccountStatus string `json:"account_status"`
Name *PayerName `json:"name"`
Address *PayerAddress `json:"address"`
Attributes *PaypalAttributes `json:"attributes"`
}

type PayerName struct {
GivenName string `json:"given_name"`
Surname string `json:"surname"`
}

type PayerAddress struct {
CountryCode string `json:"country_code"`
}

type PaypalAttributes struct {
Vault *PaypalVault `json:"vault"`
}

type PaypalVault struct {
ID string `json:"id"`
Status string `json:"status"`
Customer *PaypalCustomer `json:"customer"`
Links []PaypalLink `json:"links"`
}

type PaypalCustomer struct {
ID string `json:"id"`
}

type PaypalLink struct {
Href string `json:"href"`
Rel string `json:"rel"`
Method string `json:"method"`
}

type Bancontact struct {
Expand Down

0 comments on commit af123c2

Please sign in to comment.