Requirements
Preventing declined payments
To prevent unnecessary declined payments when a payment network connection is unavailable, we put an application in our platform’s penalty box. Until the problem is resolved, we route payments through other connections. With Adyen, the penalty box is not limited to ecommerce payments. We inform the payment terminal that an application is in the penalty box as soon as the terminal tries to get authorization for a payment with such an application. The terminal then puts the application in its own penalty box for the next couple of hours. During this time:- The terminal checks if it can process the transaction offline. It first tries offline EMV, then Store and Forward.
- If offline processing is not possible, the terminal skips the application that is in the penalty box. Instead, it uses another application on the card. For example, if a French card has Cartes Bancaires and Visa and the connection to Cartes Bancaires is temporarily unavailable, we route the transaction to VISA instead of declining the transaction.
- If the card is single-branded, the terminal tries to authorize the transaction, in case the outage has been resolved. If that fails, the terminal tries offline processing.
- If there are no other applications available and offline processing is not possible, the transaction is declined.
Testing
Using the payment amount, you can simulate a scenario where an application is in the penalty box, offline processing is not possible, and there are no other applications on the card. The initial transaction is declined and the terminal puts the application in its own penalty box for four hours. During this time, the test terminal will skip the application that is in its penalty box. Proceed as follows:-
Make a payment using your test terminal and Adyen test card for an amount ending in 158.
For example: Test payment for an amount ending in 158 -
Insert the test card into the terminal and select one of the applications.
The terminal will show the payment is declined. -
Check the payment response. To indicate the declined payment is related to a penalty-boxed application, the
Responsecontains:Result: FailureAdditionalResponse.refusalReason: 235 AID bannedAdditionalResponse.message: ERRORErrorCondition: Refusal
ErrorConditionto code your POS app. TherefusalReasonandMessagefields are included for additional insight, and should not be coded against. Response 235 AID banned - In your Customer Area, check that the transaction appears with an acquirer response of Current AID is in Penalty Box. (BAN_CURRENT_AID).
-
If you have set up platform standard webhooks, check that you receive an AUTHORISATION webhook with:
success: falsereason: Application banned
-
Make another payment for a different amount that doesn’t end in 158 or any of the other special amounts for simulating declined payments, and insert the test card in your test terminal.
The application you selected previously is not available now. This will last for four hours.