File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -102,3 +102,17 @@ const (
102
102
ProductCategorySoftwareOther ProductCategory = "OTHER"
103
103
ProductCategorySoftwareServices ProductCategory = "SERVICES"
104
104
)
105
+
106
+ type PayeePreferred string // Doc: https://developer.paypal.com/api/orders/v2/#definition-payment_method
107
+ const (
108
+ PayeePreferredUnrestricted PayeePreferred = "UNRESTRICTED"
109
+ PayeePreferredImmediatePaymentRequired PayeePreferred = "IMMEDIATE_PAYMENT_REQUIRED"
110
+ )
111
+
112
+ type StandardEntryClassCode string // Doc: https://developer.paypal.com/api/orders/v2/#definition-payment_method
113
+ const (
114
+ StandardEntryClassCodeTel StandardEntryClassCode = "TEL"
115
+ StandardEntryClassCodeWeb StandardEntryClassCode = "WEB"
116
+ StandardEntryClassCodeCcd StandardEntryClassCode = "CCD"
117
+ StandardEntryClassCodePpd StandardEntryClassCode = "PPD"
118
+ )
Original file line number Diff line number Diff line change @@ -198,11 +198,18 @@ type (
198
198
Locale string `json:"locale,omitempty"`
199
199
ShippingPreference ShippingPreference `json:"shipping_preference,omitempty"`
200
200
UserAction UserAction `json:"user_action,omitempty"`
201
+ PaymentMethod PaymentMethod `json:"payment_method,omitempty"`
201
202
//LandingPage string `json:"landing_page,omitempty"` // not found in documentation
202
203
ReturnURL string `json:"return_url,omitempty"`
203
204
CancelURL string `json:"cancel_url,omitempty"`
204
205
}
205
206
207
+ // Doc: https://developer.paypal.com/api/orders/v2/#definition-payment_method
208
+ PaymentMethod struct {
209
+ PayeePreferred PayeePreferred `json:"payee_preferred,omitempty"`
210
+ StandardEntryClassCode StandardEntryClassCode `json:"standard_entry_class_code,omitempty"`
211
+ }
212
+
206
213
// Authorization struct
207
214
Authorization struct {
208
215
ID string `json:"id,omitempty"`
You can’t perform that action at this time.
0 commit comments