An insufficient funds decline means the card issuer refused the payment because the account didn't have enough money or available credit at that moment. Visa's response code is 51, "Not sufficient funds", and Visa files it in Category 2, "Issuer cannot approve at this time" (Checkout.com). Stripe reports it as the decline code insufficient_funds: "The card has insufficient funds to complete the purchase" (Stripe).
"At this time" is the important part. The card is real, the details are right, and nobody suspects fraud. The issuer isn't saying never, it's saying not today.
If your card was just declined for insufficient funds
The payment needs more than the card has available right now. Use another card, wait until money lands in the account, or check whether a pending payment is holding part of your balance. If a business is retrying a subscription, you don't need to do anything once the money is there: the next attempt will usually go through on its own.
Why it's the best soft decline to retry
Soft declines are the ones the issuer might approve later; soft vs hard declines has the full split. Among them, insufficient funds is the one with a cause you can reason about:
| Decline | What's wrong | Does waiting fix it? |
|---|---|---|
insufficient_funds (51) | Not enough money, right now | Usually: money arrives on a schedule |
issuer_not_available, processing_error | Something between you and the bank | Yes, in minutes or hours |
generic_decline, do_not_honor (05) | Unknown | A coin flip: retry once (do not honor) |
expired_card, incorrect_number | The card details | No. New details fix it |
lost_card, stolen_card | The card is gone | Never |
A technical error clears quickly but tells you nothing about the customer. A generic decline might be a fraud flag you'll never see. Insufficient funds is the one where the customer wants to pay, the card works, and the fix is a date. That's also why retrying it immediately is pointless: the balance that was short a minute ago is still short.
Stripe's own suggested next step for this code is "The customer needs to use an alternative payment method" (Stripe). That's right when the customer is at the checkout. For an off-session renewal, where nobody's there to pick another card, time is the better fix.
When to retry
Chapter 24's dunning table waits 72 hours after an insufficient funds decline, and its optimization advice is to time retries to paychecks. The catch is that paydays aren't one date. The Bureau of Labor Statistics counts how often US private employers pay: 43.0% of establishments pay biweekly, 27.0% weekly, 19.8% semimonthly and 10.3% monthly, as of February 2023 (BLS). Those are shares of employers, not workers, but the point stands: the 1st and the 15th are paydays for the semimonthly minority, and a biweekly payday moves around the calendar.
So use what you know about the customer, not the calendar:
- Wait at least 3 days. The balance that was short this morning is still short this afternoon. A weekly payday falls somewhere in any 7-day stretch and a biweekly one in any 14, so no single retry date catches everyone; the point of the wait is to stop spending attempts on days nothing can have changed.
- Slide towards the customer's own pattern. If their previous renewals cleared on the 15th, the 15th is a better retry date than the 13th. Your payment history is the only payday data you have.
- Spread retries over about two weeks. Two weeks covers a full weekly or biweekly pay cycle. Four retries 3 days apart fit in 12 days.
- Email before the first retry. Chapter 24's sequence puts the "payment failed" email on day 1 and the first retry on day 3, so a customer who moves money or switches cards makes that retry succeed.
How many times you're allowed to retry
The card networks count, and charge for going over.
- Visa puts
51in Category 2, which may be retried within a limit per card over 30 days. The current Visa Rules set that at "up to 20 attempts in 30 days" (Visa Rules, October 2026, Table 7-2), up from 15 in Visa's 2020 notice; PayPal lists a fee of $0.10 per domestic retry and $0.25 cross-border beyond it (PayPal). - Mastercard charges after 10 retries in 24 hours or 35 in 30 days for the same account, card acceptor and amount (PayPal). Read the Merchant Advice Code too:
24to30mean retry after 1 hour, 24 hours, or 2, 4, 6, 8 or 10 days, and03or21mean don't (Braintree). An advice code beats your schedule. - Stripe recommends at most eight retries, and warns that issuers can read more as fraud (Stripe).
The schedule above is the original attempt plus four retries in two weeks: five attempts, a third of Visa's lower limit and under Stripe's eight. There's no reason to get anywhere near the network lines with one code on one card. Count per card fingerprint, not per payment, because a customer with two failing invoices is still one card.
In code
A scheduler for the retry date. It enforces the 3-day gap and the two-week window, and slides a retry up to four days towards a day of the month the customer has paid on before.
from datetime import date, timedelta
MIN_GAP = timedelta(days=3) # chapter 24's 72 hours between attempts
MAX_RETRIES = 4 # far below Visa's and Mastercard's 30-day limits
WINDOW = timedelta(days=14) # long enough to cross a biweekly payday
LOOK_AHEAD = 4 # how far to slide a retry towards a known payday
def next_retry(first_failed, last_attempt, retries_so_far, paid_days=frozenset()):
"""Date of the next retry for an insufficient_funds decline, or None to stop.
paid_days: days of the month on which this customer's earlier charges
succeeded. It's the only payday data you have, and it's theirs.
"""
if retries_so_far >= MAX_RETRIES:
return None
earliest = last_attempt + MIN_GAP
deadline = first_failed + WINDOW
if earliest > deadline:
return None
for offset in range(LOOK_AHEAD + 1):
day = earliest + timedelta(days=offset)
if day > deadline:
break
if day.day in paid_days:
return day
return earliest
# Declined on 10 November; this customer's renewals usually clear on the 15th.
print(next_retry(date(2026, 11, 10), date(2026, 11, 10), 0, {15})) # 2026-11-15
print(next_retry(date(2026, 11, 10), date(2026, 11, 15), 1, {15})) # 2026-11-18
If the decline carries a Mastercard advice code of 24 to 30, use the later of that wait and MIN_GAP. On Stripe Billing, Smart Retries already picks the timing for subscription invoices; this is for retries you schedule yourself. Stripe test cards include one that declines with insufficient_funds, so you can run the whole sequence in test mode.
Reduce it before it happens
- Offer a payment method that doesn't depend on today's balance. Stripe suggests a buy now, pay later option to minimize insufficient funds declines (Stripe).
- Let the customer move the billing date. If renewals keep failing on the 1st and clearing on the 5th, the problem is the date, not the customer.
- Bank debits fail the same way, under different rules. An ACH debit returned for insufficient funds is R01, and Nacha allows two retries of it, within 180 days. The rules are in ACH return codes.
The day-by-day sequence the 72-hour wait comes from, and why the email goes before the first retry. From chapter 24.
Standard Dunning Sequence
- Day 1: Send payment failed email
- Day 3: First retry attempt
- Day 6: Reminder email
- Day 9: Second retry attempt
- Day 12: Final warning email
- Day 14: Pause subscription (72hr grace)
- Day 17: Cancel if unresolved
Each step is a decision, and the shape isn't arbitrary. The email comes before the first retry on purpose. A customer who fixes the card after that email makes the first retry succeed, and a retry that fails before anyone has been told is a wasted attempt. Retries and messages then alternate, so nobody gets two messages in a row without something having been tried in between. The gaps follow the table above; insufficient funds wants 72 hours, and a payday often falls inside that window.
The messages should escalate in specificity, not in volume. Day 1 says something went wrong and gives a link that fixes it in one step. Day 6 repeats the link and, for the first time, says what happens if nothing changes; Day 12 names the date access ends. None of them should read as an accusation, and Chapter 7 has the wording that tests better. When email isn't landing, add a channel rather than a louder email: SMS for the final warning, and a human for the accounts that matter.
Day 14 is where the design question lives: pause, cancel, or downgrade to a plan the account can stay on (a plan change, not a new state)? Pause preserves the account and the data at the cost of a stopped invoice, and it fits when the failure is probably temporary and the customer is probably coming back. Downgrade to the free tier keeps the account alive indefinitely and makes win-back a single click. Cancel fits when keeping the account costs real money in storage, seats, or compute, and the customer has been silent through the whole sequence. The schedule above pauses first and cancels three days later, which gives a quiet customer one last window without letting paused accounts pile up.
Stopping matters as much as starting. Every retry after the sequence ends has worse odds than the one before it, and every message after the final warning spends goodwill you'll want for the win-back campaign. Stop on schedule, record why, and hand the customer to the win-back flow the takeaways describe.
Complete Implementation: See src/examples/24-advanced-subscription-management/dunning_management.py
Paycheck timing, high-value accounts, and what Smart Retries leaves for you to decide.
Dunning Optimization
Treat high-value customers with personal outreach, support tickets, and longer grace periods. For expired cards on a processor without an account updater, skip the retries and push update requests by email and SMS. Insufficient-funds failures want longer delays and retries timed to paydays. Most US employers pay weekly or every two weeks, not on the 1st and 15th (BLS), so learn each customer's pattern from when their earlier payments cleared. At scale, an ML model predicting optimal retry timing from customer history beats any fixed schedule. If you're on Stripe, Smart Retries already does the timing part, and what's left for you is the messaging and the pause-or-cancel decision.
Questions
What does insufficient funds mean on a card payment?
The card issuer declined the payment because the account didn't have enough money or available credit at that moment. Visa's response code is 51, and Stripe reports it as insufficient_funds. The card itself is fine.
Should I retry an insufficient funds decline?
Yes, but not straight away. Wait at least 3 days, retry near a date the customer's earlier payments cleared on, and spread about four retries over two weeks. Email the customer before the first retry.
How many times can you retry an insufficient funds 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. Four retries over two weeks stays well inside all of them.
Is insufficient funds a soft or hard decline?
Soft. Visa files code 51 in Category 2, issuer cannot approve at this time, which may be retried within its limits. A hard decline, such as a lost or stolen card, is never retried.
When is the best time to retry a failed payment for insufficient funds?
After money is likely to have arrived. US employers pay on different schedules: 43.0% of private establishments pay biweekly and 19.8% semimonthly (BLS, February 2023), so the customer's own history of successful payment dates is a better guide than the 1st and 15th.