mirror of
https://github.com/plutov/paypal.git
synced 2025-03-13 21:40:58 +01:00
Additional return fields for ExecuteApprovedPayment()
This commit is contained in:
parent
e6df3b7cfe
commit
ae21bc607b
9
types.go
9
types.go
|
@ -257,6 +257,7 @@ type (
|
|||
ID string `json:"id"`
|
||||
Links []Link `json:"links"`
|
||||
State string `json:"state"`
|
||||
Payer PaymentPayer `json:"payer"`
|
||||
Transactions []Transaction `json:"transactions,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -321,6 +322,13 @@ type (
|
|||
Status string `json:"payer_status,omitempty"`
|
||||
}
|
||||
|
||||
// PaymentPayer struct
|
||||
PaymentPayer struct {
|
||||
PaymentMethod string `json:"payment_method"`
|
||||
Status string `json:"status,omitempty"`
|
||||
PayerInfo *PayerInfo `json:"payer_info,omitempty"`
|
||||
}
|
||||
|
||||
// PayerInfo struct
|
||||
PayerInfo struct {
|
||||
Email string `json:"email,omitempty"`
|
||||
|
@ -331,6 +339,7 @@ type (
|
|||
ShippingAddress *ShippingAddress `json:"shipping_address,omitempty"`
|
||||
TaxIDType string `json:"tax_id_type,omitempty"`
|
||||
TaxID string `json:"tax_id,omitempty"`
|
||||
CountryCode string `json:"country_code"`
|
||||
}
|
||||
|
||||
// Payment struct
|
||||
|
|
Loading…
Reference in New Issue
Block a user