Values for negative testing

Temp20221122C
New Community Member

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!

Login to Me Too
1 REPLY 1

MTS_Chiranjeevi
Moderator
Moderator

Good day @Temp20221122C,

 

Thank you for your post and welcome to the Community Forum.

 

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.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.