I need a number of credit card to test in PayPal an error payment

AdiWebDeveloper
Contributor
Contributor
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!

 

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

MTS_Jennifer
Moderator
Moderator

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

 

View solution in original post

Login to Me Too
1 REPLY 1
Solved

MTS_Jennifer
Moderator
Moderator

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

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.