- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please, we need to test the payment by credit card through the paypal interface checkout. Our problem is that all the cards we entered are success.
Do you know any card number which we can test and return an error such as "insufficient balance"? Thank you!
Solved! Go to Solution.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for posting to the PayPal Sandbox Community.
You can use Negative testing test for a variety of payment decline codes.
Here is the documentation on Negative Testing:
https://developer.paypal.com/docs/api-basics/sandbox/nt-rest/
If you are using Rest API the negative testing is done via request headers.
Here is the documentation:
https://developer.paypal.com/docs/api-basics/sandbox/request-headers/
None of the cards will give an error saying insufficient balance (even when processing live transactions), however, in real scenarios when you process payments you will receive a payment decline, and the error insufficient balance will not be the error message. The error message will be Authorization Denied.
One of the error messages you can test is AUTHORIZATION_DENIED
Authorization Denied is an error message you receive when the card issuing bank declines a card. The bank can decline a card for a variety of reasons such as insufficient balance to process the payment.
Here is a listing of errors you can use in your Negative Testing:
https://developer.paypal.com/docs/api/payments/v2/#errors
If you need test cards to test, when you log into the PayPal Developer Dashboard there is a credit card generator.
Thank you,
Jennifer
PayPal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for posting to the PayPal Sandbox Community.
You can use Negative testing test for a variety of payment decline codes.
Here is the documentation on Negative Testing:
https://developer.paypal.com/docs/api-basics/sandbox/nt-rest/
If you are using Rest API the negative testing is done via request headers.
Here is the documentation:
https://developer.paypal.com/docs/api-basics/sandbox/request-headers/
None of the cards will give an error saying insufficient balance (even when processing live transactions), however, in real scenarios when you process payments you will receive a payment decline, and the error insufficient balance will not be the error message. The error message will be Authorization Denied.
One of the error messages you can test is AUTHORIZATION_DENIED
Authorization Denied is an error message you receive when the card issuing bank declines a card. The bank can decline a card for a variety of reasons such as insufficient balance to process the payment.
Here is a listing of errors you can use in your Negative Testing:
https://developer.paypal.com/docs/api/payments/v2/#errors
If you need test cards to test, when you log into the PayPal Developer Dashboard there is a credit card generator.
Thank you,
Jennifer
PayPal

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- where does paypal payments go to if there is no linked phone or email to the seller ? in PayPal Payments Standard
- Is it possible to make payments in RON (Romanian Leu) through PayPal? in REST APIs
- My PayPal is not allowing me to receive or send requests. in PayPal Payments Standard
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment
- [WooCommerce PayPal Payments] - Required phone country code, different than the cards country code. in PayPal Payments Standard