How to place an order with PayPal payment method as failed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've integrated the Paypal sandbox with Magento 2. I want a logic to happen when an order failed with Paypal payment. In order to test the logic, I want to make the payment fail.I'm using PayPal sandbox and tried to debug the response from the DoExpressCheckoutpayment inbuilt method in PayPal but couldn't get a clue and couldn't make the PayPal payment to fail. Any help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for posting to the PayPal Sandbox Community.
You can enable negative testing, it is specific to testing certain error conditions in Sandbox.
Here is the documentation on it from the PayPal Developer Website:
https://developer.paypal.com/docs/api-basics/sandbox/error-conditions/
Thanks,
Jennifer
PayPal
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
- Add Others data in SDKs
- link my PayPal business account with my WordPress website , but it's not work ?! in PayPal Payments Standard
- Need help to integrate PayPal Checkout with Ecwid in PayPal Upgrade Community
- Change the button from Sandbox to Production in REST APIs