Hi - I’m trying to do negative testing for PayPal https://developer.paypal.com/docs/api/sandbox/nt-classic/#testing-credentials
You can force two types of API errors: those related to the transaction amount , and those not related to the amount.
- To trigger an error condition on an amount-related field, specify a error code value as a number with two digits to the right of the decimal point. For example, specify a value of
107.55to trigger the 10755 error.
- To trigger errors on fields that are not amount related, specify the error code in whole. For example, use a value of
10539to trigger a “payment declined” error.
How to set the amount to trigger error ‘payment declined’ in magento 2. Negative Testing is On for sandbox business account.