In order to enable correctly Negative Testing:
- Navigate to the Profile > Settings page of your merchant’s test Business account (see Managing your Sandbox accounts for details).
- On the Profile tab, set Negative Testing to On.
In order to trigger some particular error please check at this link the updated guide for Testing API error handling routines:
https://developer.paypal.com/webapps/developer/docs/classic/lifecycle/ug_sandbox/#errors
Use negative testing to trigger the following types of errors:
- Errors that result from calling a PayPal API.
- Errors related Virtual Terminal and the DoDirectPayment operation (verification and credit card validation errors).
You can force two types of API errors: those related to the transaction amount, and those not related to the amount.
Note: Negative testing is available only in the Sandbox—you cannot force or simulate error conditions in the live PayPal environment. Negative testing can be used with Classic PayPal API versions 2.4 and later.