- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'd like to test an see how the response looks like, if a /v1/payments/payment/XXXX/execute fails.
I know from the docs the state can be approved or failed, but is there some way to provoke a sandbox account to result in a failed state?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for Posting to the PayPal Merchant Technical Support Community.
We have Negative Testing Available, which will provoke negative responses on purpose to help with your testing.
Here is the guide for Rest API Negative Testing: https://developer.paypal.com/docs/api/nt-rest/
Please keep in mind that it is in beta so not ever response is available, but it is very useful in testing error conditions.
Thank you,
Jennifer
PayPal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for Posting to the PayPal Merchant Technical Support Community.
We have Negative Testing Available, which will provoke negative responses on purpose to help with your testing.
Here is the guide for Rest API Negative Testing: https://developer.paypal.com/docs/api/nt-rest/
Please keep in mind that it is in beta so not ever response is available, but it is very useful in testing error conditions.
Thank you,
Jennifer
PayPal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the help and link. Had seen this page before and it seems it does not provide testing for payments endpoints.
Perhaps there is some description on what circumstances a payment can fail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Here is a link to the request headers and the negative testing that is available:
https://developer.paypal.com/docs/api/request-headers/
Thank you,
Jennifer
PayPal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- What is the order of execution for latest Rest APIs for paypal payment ecomerce site in REST APIs
- Rest API: Handling exception on create order in REST APIs
- PayPal Advanced Checkout Error in REST APIs
- got 500 error in payments/payment/PAYID/execute. User is charged but transaction didn`t appear in REST APIs
- Could not find org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.4-1. in SDKs