How do I test failed transactions in the PayPal Sandbox?
PayPal's Sandbox allows developers to return failed error codes for AVS, CVV, and other failure results. For the negative testing to work for API response codes, developers need to set the API version in their code to greater than or equal to 2.4.
If you accept cookies, we'll use them to improve and customise your experience and enable our partners to show you personalised PayPal ads when you visit other sites. Manage cookies and learn more