- 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.
- Button in PayPal Payments Standard
- Need help to integrate Advanced Checkout (PPCP) With WHMCS in PayPal Upgrade Community
- I want to implement subscription functionality. in REST APIs
- Shipping options are not appearing in my cart through link or button. in PayPal Payments Standard
- Connecting with site to take payments in Payflow