Negative PayPal sandbox testing is no longer available?

Until 2 weeks ago, we were able to simulate negative testing, but in fact we cannot check the error condition (pending, error) in the PayPal sandbox, the response of the AdaptivePayment API will always be COMPLETED.

We followed this guide to properly set up our sandbox account. There are some problems in the new development environment.

Can someone say some tips for testing negative conditions?

Preliminary thanks

+6
source share
2 answers

To enable negative testing correctly:

  • Go to the Settings> Profile > page of your Business Account trading account (see Sandbox Account Management ).
  • On the Profile tab, set Negative Testing to.

To cause some specific error, please check out this link with an updated guide for testing API error handling procedures : https://developer.paypal.com/webapps/developer/docs/classic/lifecycle/ug_sandbox/#errors

Use negative testing to run the following types of errors:

  • Errors that occur when calling the PayPal API.
  • Error-related virtual terminal and DoDirectPayment operation (verification and validation of credit card validation).

You can force two types of API errors: those that are related to the amount of the transaction, and those that are not related to the amount.

Note. Negative testing is only available in the Sandbox - you cannot force or simulate error conditions in a PayPal live environment. Negative testing can be used with the classic PayPal APIs of version 2.4 and later.

+3
source

It is available, but you need to go to https://developer.paypal.com/developer/accounts

This option is not available at https://www.sandbox.paypal.com

You may also need to link your account if you have already created an account in the sandbox: https://devblog.paypal.com/sandbox-account-linking/

You need to find a screen that looks like this and click Profile

enter image description here

Then an option is available.

enter image description here

+9
source

Source: https://habr.com/ru/post/943873/


All Articles