Update README.md (#273)

This commit is contained in:
Suhail Gupta 2024-08-30 17:16:26 +05:30 committed by GitHub
parent daabe58f88
commit 9451befb2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
``` ```