(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.
- Customising Paypal Checkout Button in PayPal Payments Standard
- SetExpressCheckout 10003 error with ITEMCATEGORY=Digital in NVP/SOAP APIs
- Paypal express checkout, payment they error "Sorry, something went wrong. Please try again." in PayPal Payments Standard
- Add Others data in SDKs
- Need help to integrate Advanced Checkout (PPCP) With WHMCS in PayPal Upgrade Community