mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 02:11:02 +01:00
[Tiny fix] Create Order
This commit is contained in:
parent
973f502217
commit
da7d8507ff
2
order.go
2
order.go
|
@ -31,7 +31,7 @@ func (c *Client) CreateOrder(intent string, purchaseUnits []PurchaseUnitRequest,
|
|||
|
||||
order := &Order{}
|
||||
|
||||
req, err := c.NewRequest("POST", "/v2/checkout/orders", createOrderRequest{Intent: intent, PurchaseUnits: purchaseUnits, Payer: payer, ApplicationContext: appContext})
|
||||
req, err := c.NewRequest("POST", fmt.Sprintf("%s%s", c.APIBase, "/v2/checkout/orders"), createOrderRequest{Intent: intent, PurchaseUnits: purchaseUnits, Payer: payer, ApplicationContext: appContext})
|
||||
|
||||
if err = c.SendWithAuth(req, order); err != nil {
|
||||
return order, err
|
||||
|
|
Loading…
Reference in New Issue
Block a user