I can't simulate credit card failures via rejection trigger in the PayPal Sandbox. What is the right flow?

737 Views Asked by At

Hi guys I am trying to simulate card errors in the sandbox. But can't understand how I can trigger it... Simulate card errors To simulate credit card failures, pass a rejection trigger in the First Name or Name on Card field in your existing advanced credit and debit card payment integration. You must use a Visa test card number, for example 4012 8888 8888 1881. Use any date in the future for the card expiry date and any three-digit number for the CVV field. https://developer.paypal.com/api/rest/sandbox/card-testing/#link-simulatecarderrors Rejection triggers https://developer.paypal.com/api/rest/sandbox/card-testing/#link-rejectiontriggers

Steps:

  1. Go to the dev.pay pay
  2. Create some personal ACC in the sandbox enter image description here
    1. Going to the https://www.sandbox.paypal.com/ and log in with this acc
  3. Make a Visa card as a prefer and change the address to the CCREJECT-BANK_ERROR enter image description here
  4. Go to the Sandbox payment and haven't any payment rejection

I also tried to change the name, but the payment either goes through completely or gives an error without even reaching the payment... enter image description here enter image description here

Sorry, I spent a lot of time on this and still can't figure out what I'm doing wrong... Could you tell me?

1

There are 1 best solutions below

3
Preston PHX On

The list of pre-generated card numbers can only be used for Advanced Credit and Debit Card integrations.

For payments on a PayPal.com checkout page or with the standard "Debit or Credit Card" black button, a newly-generated (random) card from https://developer.paypal.com/api/rest/sandbox/card-testing/#link-creditcardgeneratorfortesting must be used.

To simulate a decline, use CCREJECT-REFUSED in the name or address line 1. Depending on what you are testing you may need to add the card to a www.sandbox.paypal.com payer account with a normal address and change the address line 1 to CCREJECT-REFUSED after adding it.