forked from go-packages/paypal
Update README.md (#273)
This commit is contained in:
parent
daabe58f88
commit
9451befb2b
|
@ -62,7 +62,7 @@ order, err := c.GetOrder("O-4J082351X3132253H")
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
units := []paypal.PurchaseUnitRequest{}
|
units := []paypal.PurchaseUnitRequest{}
|
||||||
source := &paypal.PaymentSource{}
|
source := &paypal.PaymentSource{}
|
||||||
appCtx := &paypalApplicationContext{}
|
appCtx := &paypal.ApplicationContext{}
|
||||||
order, err := c.CreateOrder(ctx, paypal.OrderIntentCapture, units, ource, appCtx)
|
order, err := c.CreateOrder(ctx, paypal.OrderIntentCapture, units, ource, appCtx)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user