From 48f8ee15cebef884daa848e8ab60e19bdb2a8ccc Mon Sep 17 00:00:00 2001 From: Konnor Klashinsky <31221309+kklash@users.noreply.github.com> Date: Sat, 18 Jun 2022 20:04:38 +0000 Subject: [PATCH] add payer_id field to Subscriber struct (#239) --- types.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/types.go b/types.go index e43b972..903828c 100644 --- a/types.go +++ b/types.go @@ -198,7 +198,7 @@ type ( Locale string `json:"locale,omitempty"` ShippingPreference ShippingPreference `json:"shipping_preference,omitempty"` UserAction UserAction `json:"user_action,omitempty"` - PaymentMethod PaymentMethod `json:"payment_method,omitempty"` + PaymentMethod PaymentMethod `json:"payment_method,omitempty"` //LandingPage string `json:"landing_page,omitempty"` // not found in documentation ReturnURL string `json:"return_url,omitempty"` CancelURL string `json:"cancel_url,omitempty"` @@ -206,8 +206,8 @@ type ( // Doc: https://developer.paypal.com/api/orders/v2/#definition-payment_method PaymentMethod struct { - PayeePreferred PayeePreferred `json:"payee_preferred,omitempty"` - StandardEntryClassCode StandardEntryClassCode `json:"standard_entry_class_code,omitempty"` + PayeePreferred PayeePreferred `json:"payee_preferred,omitempty"` + StandardEntryClassCode StandardEntryClassCode `json:"standard_entry_class_code,omitempty"` } // Authorization struct @@ -990,6 +990,7 @@ type ( // Subscriber struct Subscriber struct { + PayerID string `json:"payer_id"` ShippingAddress ShippingDetail `json:"shipping_address,omitempty"` Name CreateOrderPayerName `json:"name,omitempty"` EmailAddress string `json:"email_address,omitempty"`