(400) Bad Request for execute payment (express checkout with REST API)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Account: Sandbox
The create payment (API: https://api.sandbox.paypal.com/v1/payments/payment) is creating the payment and returning the success status.
The Authorize function returns a payer id which is passed to execute API (API: https://api.sandbox.paypal.com/v1/payments/payment/<paymentId>/execute/), which returns a bad request.
I have verified the correctness of the Authorization token, payment Id and the payer id, and they are as expected.
Kindly help. Kindly let me know if I need to furnish more details.
- Labels:
-
Express Checkout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the same problem.
The payment is created successfully, but I can't execute it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well... I was using a model I copied from somewhere in the documentation, then I realized there was a invoice_number parameter. This parameter must be unique and it is not validated by the time you create the payment, but when you execute the payment.
Hope this helps.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Is it possible to make payments in RON (Romanian Leu) through PayPal? in REST APIs
- Payments Refunded Automatically After Successful Transactions - PayPal Business Account Issue in REST APIs
- p is not a function error using the example downloaded from Paypal in SDKs
- How to enable on-demand / recurring payments to existing PayPal checkout? in SDKs
- How do you create subscriptions with PayPal Advanced Checkout? in SDKs