Values for negative testing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I need to provoke errors in my Sandbox environment to prevent such error in the future. Is there any possibility to provoke an error (for example insufficient funds)? Maybe with some certain values which I put in the information for credit card or something like that.
I activated the negative testing in the settings but I can't test it correctly because there are no errors.
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The examples mentioned here https://developer.paypal.com/docs/api-basics/sandbox/error-conditions/ are for NVP API integration.
Test API error handling routines : https://developer.paypal.com/tools/sandbox/error-conditions/#link-testapierrorhandlingroutines.
For REST APIs, please refer https://developer.paypal.com/docs/api-basics/sandbox/nt-rest/.
To enable negative testing - https://developer.paypal.com/tools/sandbox/error-conditions/#link-enablenegativetesting
We only have negative testing available for the following APIs:
You can use request headers to test the following Payments API and Orders API methods:
https://developer.paypal.com/tools/sandbox/negative-testing/request-headers/
Sincerely,
Chiranjeevi
PayPal/Braintree MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Some negative testing value only reply 403 Forbidden in Sandbox Environment
- PayPal-Mock-Response header not working -- got 403 error instead. Help! in Sandbox Environment
- Prevent changing shipping address via SET_PROVIDED_ADDRESS not working. Orders V2 Advanced Checkout in REST APIs
- Advanced Checkout Error Trigger is not triggering an error but still going through onApprove in Sandbox Environment
- unable to complete a test purchase transaction in sandbox mode in Sandbox Environment