A soft decline is one the issuer might approve later: not enough money right now, a limit, an issuer that couldn't be reached. A hard decline is one it will never approve on that card: lost, stolen, closed, or a number that doesn't exist. Soft declines get retried, spaced out and within limits. Hard declines never get retried on the same card. A generic decline is the issuer declining without a reason, and it counts as soft.
The networks don't use the words soft and hard. Visa sorts its response codes into four reattempt categories and Mastercard sends a Merchant Advice Code with the decline. Both come down to the same three questions: can you retry, do you need new details first, or must you stop?
Visa's reattempt categories
| Category | Visa's name | Example codes | Soft or hard | What to do |
|---|---|---|---|---|
| 1 | Issuer will never approve | 04, 07 pick up card; 14 invalid account number; 41 lost; 43 stolen; 46 closed account; 57 not permitted; R0, R1, R3 stop payment orders | Hard | Never retry this card for this payment |
| 2 | Issuer cannot approve at this time | 51 insufficient funds; 61 over amount limit; 65 over frequency limit; 91, 96 issuer or system down; 19 re-enter; 59; 62; 03 | Soft | Retry later, within the limit |
| 3 | Issuer cannot approve based on details provided | 54 expired card; 55; 63; 82; 6P | Neither: fix the data | Retry only with updated details |
| 4 | Generic response codes | Everything not listed, including 05 do not honor | Soft | Retry, sparingly |
Category names and codes are from Checkout.com; the R0 stop-payment code is from PayPal's summary. In Checkout.com's words, Category 2 means the issuer "may approve the transaction, but cannot do so at that time", Category 3 that it "cannot approve the transaction with the details provided", and Category 1 that "there is no circumstance in which the issuer will approve the transaction" (Checkout.com).
Two codes need a note. Visa moved 03, 62, 78 and 93 from Category 1 to Category 2 in 2021, because they can describe temporary conditions. And 14 sits in both Category 1 and Category 3: whatever else you do, never reattempt the same account number after a 14 (Visa).
Mastercard's Merchant Advice Codes
Mastercard puts the advice next to the decline instead of in a category (Braintree):
| MAC | Meaning | Soft or hard |
|---|---|---|
| 01 | New account information available | Fix the data: get the new details |
| 02 | Cannot approve at this time, try again later | Soft |
| 03 | Do not try again | Hard |
| 04 | Token not supported | Fix the data: send the card number, not the token |
| 21 | Stop recurring payment | Hard: the customer cancelled |
| 24 to 30 | Retry after 1 hour, 24 hours, 2, 4, 6, 8 or 10 days | Soft, with a wait |
For card-not-present payments, Mastercard also treats response codes 04, 14, 15, 41, 43 and 54 as no further authorization on the same card number and expiry date (PayPal). For 54 (expired) that's a data problem: a new expiry date makes it a new attempt.
Where generic declines fit
A generic decline is soft by category and a coin flip in practice. On Visa, 05 lands in Category 4 and may be retried within the limit. On Stripe, generic_decline covers declines "for an unknown reason", and also payments that Stripe Radar or Adaptive Acceptance blocked (Stripe). Retrying your own fraud block on the same card achieves nothing, so check the charge's outcome before you count it as an issuer decline. Retry a generic decline once, a day later, then ask for another card. Do not honor covers code 05 in detail.
The other soft decline
In Europe, "soft decline" also means something narrower: the issuer wants the cardholder to authenticate. Stripe's description of authentication_required says a soft decline from an issuer triggers an authentication flow when you use Stripe's front ends (Stripe). Visa's code for it is 1A (card decline codes). It's soft in that the payment can succeed, but no retry without the customer will ever succeed, so treat it as its own category: bring the customer back for 3D Secure. SCA exemptions and 3DS2 covers the rules.
The rules that get you flagged
| Network | What earns a fee | Fee, per PayPal's 2026 summary |
|---|---|---|
| Visa | Any reattempt after a Category 1 decline; more than the allowed reattempts on a card in 30 days after Category 2, 3 or 4 | $0.10 domestic, $0.25 cross-border |
| Mastercard | More than 10 retries in 24 hours or 35 in 30 days, for the same account, card acceptor and amount | $0.50 per retry in the US |
| Mastercard | A MAC 03 or 21 decline within 30 days of an earlier 03 or 21 decline on the same transaction | $0.03 per transaction in the US |
Source: PayPal. The Visa limit itself is "up to 20 attempts in 30 days" in the current Visa Rules (Visa Rules, Table 7-2); Visa's 2020 notice said 15, so older guides still quote that. Fees vary by region and acquirer, so check the schedule in your processing agreement.
None of these need a clever system to avoid. They need a counter per card, and the discipline to stop at the first hard answer. Stripe adds a third line: at most eight retries per charge, because issuers can read more as potential fraud (Stripe).
In code: classify the raw codes, and budget the retries
This works from the network's own codes, which Stripe exposes on the charge's outcome as network_decline_code and network_advice_code, and other processors pass through in some form. RetryBudget keeps each card well under both networks' lines; keep its counts in your database rather than in memory.
from collections import deque
from datetime import datetime, timedelta, timezone
# Visa's reattempt categories (Checkout.com, PayPal). Category 4 is everything else.
VISA_CAT_1 = {"04", "07", "12", "14", "15", "41", "43", "46", "57", "R0", "R1", "R3"}
VISA_CAT_3 = {"54", "55", "63", "82", "6P"}
# Mastercard, card-not-present: no further authorization on this PAN and expiry.
MC_NO_REATTEMPT = {"04", "14", "15", "41", "43"}
MC_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(brand, response_code, advice_code=None):
"""'hard', 'fix_data' or 'soft' for one declined authorization."""
if brand == "mastercard":
if advice_code in ("03", "21") or response_code in MC_NO_REATTEMPT:
return "hard"
if advice_code == "01" or response_code == "54":
return "fix_data" # new card details first, then it's a new attempt
return "soft"
if brand == "visa":
if response_code in VISA_CAT_1:
return "hard"
if response_code in VISA_CAT_3:
return "fix_data"
return "soft" # Category 2, or Category 4 (generic)
return "unknown" # other networks: read that network's own table
class RetryBudget:
"""Attempts per card fingerprint, kept under both networks' fee lines."""
def __init__(self, per_30_days=12, per_24_hours=4):
self.per_30_days, self.per_24_hours = per_30_days, per_24_hours
self.attempts = {}
def allow(self, fingerprint, now=None):
now = now or datetime.now(timezone.utc)
seen = self.attempts.setdefault(fingerprint, deque())
while seen and now - seen[0] > timedelta(days=30):
seen.popleft()
last_day = sum(1 for t in seen if now - t <= timedelta(hours=24))
if len(seen) >= self.per_30_days or last_day >= self.per_24_hours:
return False
seen.append(now)
return True
The budget defaults (12 a month, 4 a day) sit below Visa's lower 15-in-30-days figure and Mastercard's 10-in-24-hours. In practice a well-behaved schedule never gets close: insufficient funds spaces four retries over two weeks. For Stripe's own decline codes mapped to actions, see card decline codes; for what to do about a renewal that failed, failed subscription payments.
Timeouts, soft declines, hard declines and authentication, each with its own clock. From chapter 5.
Not all errors are equal, and neither are declines. A network timeout gets retried in seconds. A soft decline, such as insufficient funds or an issuer that was briefly unreachable, gets retried too, but in hours or days, a limited number of times, and within the card networks' reattempt limits. A hard decline (a lost or stolen card, an account that doesn't exist, or an issuer advice code that says don't try again) never gets retried on the same card. And "authentication required" isn't a failure to retry at all: it's a request to bring the customer back. Telling these apart is what separates systems that recover revenue from ones that hammer a stolen card until the network notices.
The issuer codes you'll see most, in plain English, and why your own distribution is the one that matters. From chapter 4.
4. Issuing Bank Declines
The most common failures happen here:
# Common decline codes and what they really mean
DECLINE_CODES = {
'insufficient_funds': "Card has no money right now - retry later",
'generic_decline': "Bank said no but won't say why",
'fraudulent': "Bank thinks this is fraud - don't retry",
'invalid_account': "Account closed or never existed",
'expired_card': "Card expired - ask for a new one"
}
The mix of these codes varies by business, card base, and country, so don't borrow someone else's. Group a month of your own declines by code and you have the only distribution that matters for your retry logic.
Questions
What is the difference between a soft and a hard decline?
A soft decline is one the issuer might approve later, such as insufficient funds or an issuer that couldn't be reached, so it can be retried within limits. A hard decline, such as a lost or stolen card or a closed account, will never be approved on that card, so it must not be retried.
Is a generic decline soft or hard?
Soft. Visa puts generic codes such as 05 (do not honor) in Category 4, which may be retried within its limits. In practice retry once, a day later, then ask for another card. On Stripe, check whether a generic_decline was Radar blocking the payment.
What are Visa's decline categories?
Category 1, issuer will never approve (never retry). Category 2, issuer cannot approve at this time (retry later). Category 3, issuer cannot approve based on details provided (retry only with updated details). Category 4, generic response codes (may be retried).
How many times can you retry a soft decline?
Visa allows up to 20 reattempts per card in 30 days under its October 2026 rules. Mastercard fees start after 10 retries in 24 hours or 35 in 30 days. Stripe recommends at most eight retries.
What happens if you retry a hard decline?
Visa charges a fee for any reattempt after a Category 1 decline, listed by PayPal at $0.10 domestic and $0.25 cross-border. Mastercard charges when a payment declined with advice code 03 or 21 is declined the same way again within 30 days. And issuers can read repeated attempts as fraud.