- 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.
- Unable to add PayPal as a payment method to Facebook in PayPal Payments Standard
- Need help to integrate PayPal Advanced Checkout (PPCP) With Shift4Shop? in PayPal Upgrade Community
- Cannot forward buyer to url after purchase in PayPal Payments Standard
- I need help with Sandbox Testing for my website in PayPal Payments Standard
- Need help to integrate PayPal Standard Checkout with Adyen? in PayPal Payments Standard