PAY-34Recommended
Retry only declines that can succeed
Sort every decline into retry or do not retry by its decline code. Never retry a card the bank reports as lost, stolen, closed or not to be tried again.
How to do it
Soft declines, such as insufficient funds or a bank that does not answer, can succeed later. Hard declines never will, such as a stolen card, a closed account or an invalid number. Mastercard merchant advice codes 03 and 21 also mean stop. Card networks charge a fee for each retry after a do-not-retry decline, and for too many retries of one card in 30 days. Visa, for example, charges for any retry of a Category 1 decline and caps the rest per card. Mastercard does the same for its merchant advice codes. The fees grow with volume, and repeat offenders can lose card acceptance. Keep the mapping as data, built from the provider's list of decline codes. When the customer is present, show a short message and offer another method. Never reveal fraud reasons. Retry the soft declines as Retry failed renewals on a fixed schedule says.
Examples
JavaScript example
const NEVER_RETRY = new Set(['lost_card', 'stolen_card', 'pickup_card', 'invalid_account', 'incorrect_number', 'do_not_try_again', 'revocation_of_authorization', 'revocation_of_all_authorizations', 'stop_payment_order'])
const shouldRetry = decline => !NEVER_RETRY.has(decline.code) && !['03', '21'].includes(decline.merchantAdviceCode)
Python example
NEVER_RETRY = {"lost_card", "stolen_card", "pickup_card", "invalid_account", "incorrect_number", "do_not_try_again", "revocation_of_authorization", "revocation_of_all_authorizations", "stop_payment_order"}
def should_retry(decline) -> bool:
return decline.code not in NEVER_RETRY and decline.merchant_advice_code not in {"03", "21"}
How to check
A unit test feeds every decline code from the provider's list and checks its category. A renewal declined as stolen schedules no retry.
Sources
- Stripe decline codes
- Stripe automatic payment retries
- Visa Rules article AI10325, declined transaction resubmission
Related rules
- PAY-35 Retry failed renewals on a fixed schedule in Payments and billing
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/payments/failed-payments-and-dunning/decline-categories">Agent Wranglers payments and billing playbook</a>. In code you write, add a comment next to it with the same link.