Decline codes

Card declined? What the code means, and whether to retry

"Card declined" is one word from the bank and a lot of guessing from everyone else. The customer wants to know what they did wrong. The developer wants to know whether to retry. Both answers live in the decline code, and the card networks fine merchants who guess wrong too often. Here's the short answer for cardholders, then the full code tables, the retry rules, and a classifier you can drop into a billing job.

If your card was just declined

The bank that issued your card said no, and the shop usually isn't told much more than that. Stripe says card issuers put most declines in a generic bucket and discuss the specifics only with their cardholders (Stripe). The usual reasons:

  • Not enough money or credit on the card right now.
  • The card expired or was replaced, and the shop still has the old details.
  • A typo in the card number, expiry date, security code or postal code.
  • The bank's fraud check didn't like the purchase: a large amount, lots of purchases in a short time, or a shop in another country.
  • The card can't be used for this kind of purchase, such as an HSA card at a non-medical shop.

Check the details and try once more. If it fails again, call the number on the back of your card: the bank can see the real reason and often clear it on the spot. Don't keep hammering the button. Repeated attempts look like fraud to the bank and can make the next decline more likely (Stripe).

How a decline reaches your code

The issuer answers every authorization with a response code. For Visa and Mastercard that's two characters (05, 51, 1A), and the meaning depends on the network, so read it together with the card brand (Stripe). Some networks add an advice code telling you what to do next; Mastercard calls these Merchant Advice Codes. Your processor then translates both into its own vocabulary: Stripe's decline_code, Adyen's refusal reasons, and so on.

On Stripe you get all three layers on the charge's outcome. An expired card comes back as network_decline_code: "54", network_advice_code: "03", reason: "expired_card" and advice_code: "confirm_card_data" (Stripe).

Network response codes

Meanings are Visa's, as listed in Stripe's network code table. The category is Visa's reattempt category, from PayPal's May 2026 summary and Checkout.com. The last two columns are ours.

CodeVisa meaningVisa categoryRetry?Tell the customer
05Do not honor4 (generic)Once, laterContact your bank, or use another card
51Not sufficient funds2Yes, after a few daysTry another card, or try again later
61Exceeds approval amount limit2Later, or a smaller amountContact your bank
65Exceeds withdrawal frequency limit2LaterContact your bank
62Restricted card (invalid in this region or country)2Rarely helpsContact your bank, or use another card
59Suspected fraud2Not blind; try 3D SecureContact your bank to confirm it's you
91Issuer or switch inoperative2Yes, soonPlease try again
96System malfunction2Yes, soonPlease try again
19Re-enter transaction2YesPlease try again
03Invalid merchant2Fix your setup firstNothing; this one is yours
54Expired card3No, not with the same dataUpdate your card
N7Decline for CVV2 failure3Only with a corrected codeCheck your security code
1AAdditional customer authentication required3Yes, with 3D SecureConfirm the payment with your bank
14Invalid account number1Never with the same numberCheck your card number
04, 07Pick up card1NeverUse another card
41, 43Lost card, stolen card1NeverUse another card
46Closed account1NeverUse another card
57Transaction not permitted to cardholder1NeverUse another card
R0, R1, R3Stop this payment, stop all future payments, stop all merchants1Never; stop billingNothing to fix; they cancelled

Other networks reuse most of the numbers with small differences. Mastercard's 65 doubles as an Identity Check soft decline, meaning the issuer wants 3D Secure, and Mastercard sends 79, 82 and 83 with an advice code that changes the meaning (Stripe). Treat the brand as part of the code.

Stripe decline codes

Stripe's decline_code values, with Stripe's own description from its decline code reference. The retry column is ours.

decline_codeWhat Stripe saysRetry?
generic_declineDeclined for an unknown reason, or blocked by Radar or Adaptive AcceptanceOnce, then ask for another card
do_not_honorDeclined for an unknown reasonOnce, then ask (see do not honor)
call_issuer, no_action_taken, security_violation, service_not_allowedDeclined for an unknown reasonAs do_not_honor
insufficient_fundsInsufficient funds to complete the purchaseYes, spaced out
card_velocity_exceededExceeded the balance, credit limit or transaction amount limitLater, or ask the customer
withdrawal_count_limit_exceededExceeded the balance or credit limitAsk for another payment method
expired_cardThe card has expiredNo; get the new card
incorrect_number, invalid_numberThe card number is incorrectNo; ask the customer to re-enter it
incorrect_cvc, invalid_cvcThe CVC is incorrectNo; ask the customer to re-enter it
incorrect_zipThe postal code is incorrectNo; ask the customer to re-enter it
authentication_requiredThe transaction requires authentication such as 3D SecureYes, with 3D Secure
issuer_not_available, processing_error, reenter_transactionThe issuer couldn't be reached, or an error occurredYes, then ask the customer
lost_card, stolen_card, fraudulent, merchant_blacklistLost, stolen, suspected fraud, or on your block listNever. Show the customer a generic decline
pickup_card, restricted_cardThe card can't be used for this payment, possibly lost or stolenNo; ask for another card
transaction_not_allowed, not_permitted, card_not_supported, currency_not_supportedNot allowed, or the card doesn't support this purchase or currencyNo; ask for another card
stop_payment_order, revocation_of_authorization, revocation_of_all_authorizationsDeclined for an unknown reasonNever; treat it as a cancellation
duplicate_transactionIdentical amount and card submitted very recentlyNo; check for the earlier payment

Two rules from Stripe worth framing. For lost_card, stolen_card, fraudulent and merchant_blacklist, don't tell the customer the real reason; show the generic message instead (Stripe). And Stripe adds an advice_code of its own: try_again_later, do_not_try_again or confirm_card_data (Stripe). When it's present, it beats your guess.

The retry rules the networks enforce

Retrying isn't free, and past a point it isn't allowed.

Visa sorts response codes into four categories. Category 1 means the issuer will never approve, and any reattempt is charged a fee. Categories 2, 3 and 4 may be retried, up to a limit per card over 30 days (PayPal, TabaPay). The limit is 20 attempts in 30 days in the current Visa Rules (Visa Rules, October 2026, Table 7-2), up from the 15 in Visa's 2020 rule notice (Visa). Visa's notice also says never to reattempt the same account number after a code 14. PayPal lists the fee for going over as $0.10 per attempt domestic and $0.25 cross-border (PayPal).

Mastercard sends a Merchant Advice Code with the decline (Braintree):

MACMeaning
01New account information available
02Cannot approve at this time, try again later
03Do not try again
04Token not supported
21Stop recurring payment
24 to 30Retry after 1 hour, 24 hours, 2, 4, 6, 8 or 10 days

Per PayPal's summary, Mastercard charges when a payment declined with MAC 03 or 21 is tried again within 30 days and declined the same way, and its excessive-retry fees start past 10 attempts on a card in 24 hours or 35 in 30 days. Codes 04, 14, 15, 41, 43 and 54 on card-not-present payments mean no further authorization on the same card number and expiry (PayPal).

Stripe recommends at most eight retries for charges that permit them, and warns that issuers can read extra retries as fraud (Stripe). On interchange-plus pricing, its Adaptive Acceptance can block a retry that would have earned a network penalty before it leaves Stripe (Stripe).

A classifier for your billing job

This maps a declined Stripe charge to one of four actions, with the earliest retry time and a retry budget. It reads the network advice first, because that's the issuer talking. The budgets are deliberately below every network limit above.

from datetime import timedelta
from enum import Enum


class Action(Enum):
    RETRY_LATER = "retry the same card automatically, later"
    AUTHENTICATE = "bring the customer back to complete 3D Secure"
    UPDATE_CARD = "ask for corrected details or a different card"
    STOP = "stop charging this card for this purchase or plan"


STOP_CODES = {"stop_payment_order", "revocation_of_authorization",
              "revocation_of_all_authorizations"}
AUTH_CODES = {"authentication_required", "authentication_not_handled"}
TEMPORARY = {"issuer_not_available", "processing_error",
             "reenter_transaction", "try_again_later"}

# Mastercard Merchant Advice Codes 24-30: the earliest sensible retry.
MAC_WAIT = {"24": timedelta(hours=1), "25": timedelta(days=1),
            "26": timedelta(days=2), "27": timedelta(days=4),
            "28": timedelta(days=6), "29": timedelta(days=8),
            "30": timedelta(days=10)}


def classify(outcome, brand):
    """Return (action, wait, max_retries) for a declined Stripe charge.

    `outcome` is charge.outcome; `brand` is
    charge.payment_method_details.card.brand.
    """
    reason = outcome.get("reason")
    advice = outcome.get("advice_code")
    mac = outcome.get("network_advice_code") if brand == "mastercard" else None

    if reason in STOP_CODES or mac == "21":
        return Action.STOP, None, 0
    if reason in AUTH_CODES:
        return Action.AUTHENTICATE, None, 0
    if mac in ("01", "03") or advice in ("do_not_try_again", "confirm_card_data"):
        return Action.UPDATE_CARD, None, 0
    if mac in MAC_WAIT:
        return Action.RETRY_LATER, MAC_WAIT[mac], 4
    if reason == "insufficient_funds":
        return Action.RETRY_LATER, timedelta(days=3), 4
    if reason in TEMPORARY:
        return Action.RETRY_LATER, timedelta(hours=1), 3
    # generic_decline, do_not_honor and the rest: one retry, then ask.
    return Action.RETRY_LATER, timedelta(days=1), 1

Store each attempt, with its codes, against the card fingerprint, not the payment ID. The networks count attempts per card, not per payment, so your budget should too. For subscription renewals, chapter 24 turns these actions into a full recovery sequence; the dunning guide covers the emails, and Stripe test cards let you trigger many of these codes in test mode.

Which declines you'll actually see most of, and why each needs a different fix. From chapter 7.

Why Payments Fail

Before you fix failed payments, look at why they fail. Most of it isn't your fault. Insufficient funds (broke until payday) and expired or replaced cards are the usual leaders, followed by generic bank declines, issuer fraud filters and network blips, plus a tail that never gets a satisfying explanation.

The mix differs by market and customer base, so pull your own decline codes before deciding where to spend effort. Insufficient funds responds to retry timing; expired cards respond to card-updater services and update-your-card emails; neither fix helps the other.

The mistake behind most "something went wrong" messages. From chapter 5.

4. Poor Error Handling

Mistake: Generic error messages like "Something went wrong" that don't help customers resolve the issue. Reality: Different failure reasons require different customer actions. "Insufficient funds" needs a different response than "card expired." Solution: Provide specific, actionable error messages mapped to the underlying decline code.

There's one exception, and it runs the other way. Stripe's decline code reference says lost_card, stolen_card, fraudulent and merchant_blacklist must be shown to the customer exactly as a generic_decline would be. Telling a fraudster "this card has been reported stolen" just tells them to try the next one on the list. pickup_card and restricted_card aren't on Stripe's list, but they can also mean lost or stolen, so a plain "your card was declined, please contact your bank" is the safe message there too.

Questions

Why was my card declined?

Your card issuer refused the payment. The usual reasons are not enough money or credit, an expired or replaced card, a typo in the card details, the bank's fraud check flagging the purchase, or a card that can't be used for this kind of purchase. Check the details, try once more, and if it fails again call the number on the back of your card.

What does decline code 05 mean?

Code 05 is "do not honor": the issuer declined without giving a reason. Visa treats it as a generic code that may be retried within its limits. The cardholder can find out the real reason by calling their bank.

Which card declines should not be retried?

Lost or stolen cards (41, 43), pick up card (04, 07), invalid account number (14), closed account (46), transaction not permitted (57) and stop payment orders (R0, R1, R3). Visa calls these Category 1: the issuer will never approve, and any reattempt is charged a fee.

How many times can I retry a declined card payment?

Visa allows a limited number of reattempts over 30 days after a Category 2, 3 or 4 decline: up to 20 attempts in 30 days under the October 2026 Visa Rules. Mastercard fees start past 10 attempts in 24 hours or 35 in 30 days. Stripe recommends at most eight retries.

What is the difference between a decline code and a Merchant Advice Code?

The decline code says why the issuer refused. The Merchant Advice Code, sent by Mastercard, says what to do next: try again later, do not try again, use new account information, stop the recurring payment, or retry after a set wait.

What the book adds

The rest of chapter 24

  • A dunning sequence designed step by step
  • Card updater programs, and when to skip the retry
  • Pause, cancel or downgrade on day 14
  • Usage-based billing and its metering edge cases
  • Churn prediction signals

30-day money-back · Instant PDF and EPUB

All 42 chapters