From 1daa78874163a5dfa6028a28bfd9b309bb26c4bf Mon Sep 17 00:00:00 2001 From: Roopak Venkatakrishnan Date: Mon, 22 Jul 2019 00:23:07 -0700 Subject: [PATCH] Use create order payer --- order.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/order.go b/order.go index 906aea0..d0323b0 100644 --- a/order.go +++ b/order.go @@ -21,10 +21,10 @@ func (c *Client) GetOrder(orderID string) (*Order, error) { // Create Order - Use this call to create an order // Endpoint: POST /v2/checkout/orders -func (c *Client) CreateOrder(intent string, purchaseUnits []PurchaseUnitRequest, payer *PayerInfo, appContext *ApplicationContext) (*Order, error) { +func (c *Client) CreateOrder(intent string, purchaseUnits []PurchaseUnitRequest, payer *CreateOrderPayer, appContext *ApplicationContext) (*Order, error) { type createOrderRequest struct { Intent string `json:"intent"` - Payer *PayerInfo `json:"payer,omitempty"` + Payer *CreateOrderPayer `json:"payer,omitempty"` PurchaseUnits []PurchaseUnitRequest `json:"purchase_units"` ApplicationContext *ApplicationContext `json:"application_context,omitempty"` }