What Happens When a Subscription Renewal Payment Fails

14 min read

The problem

A customer signed up in January. They like the product. They have no plan to leave. Then in June their debit card expires, or their salary lands two days late, or they tidy up their UPI app and revoke a mandate they forgot was yours. The renewal fails.

Nobody clicked cancel. But unless something catches that failure, the customer is gone just the same.

This is the quiet half of subscription churn, and it is mostly a plumbing problem. This part follows one failed renewal through Razorpay: why it failed, when Razorpay tries again, what the subscription's state does while it waits, how you get a halted subscription moving again, and what you should build on your side so the customer actually hears about it. Everything comes from Razorpay's docs and a small number of published industry figures, all linked under Sources. Where a number has no good source, it is not here.

Why a renewal fails

Razorpay's Payment Retries page lists four reasons an automatic charge on a subscription fails:

  1. The card has expired.
  2. The bank has blocked the card.
  3. The customer's account has insufficient balance.
  4. The customer has cancelled the mandate from their end.

These are not all the same kind of failure. Insufficient balance is temporary: the money may be there tomorrow. An expired card will fail every single time until someone gives you a new one. A revoked mandate is the customer telling you something, even if they did not mean to tell you that they are leaving.

There is a fifth cause that does not sit on the card list but shows up in Razorpay's UPI docs. On the UPI page for recurring debits, Razorpay writes that a debit that fails "because of insufficient balance or a temporary bank issue often succeeds on a later attempt". Banks have bad hours too.

Customers have more ways to stop a mandate than you might expect. RBI's E-mandate Framework, 2026 (the current rule, dated April 21, 2026) says the customer can modify or withdraw a mandate "at any point of time". NPCI's UPI AutoPay page says customers can modify, revoke, pause and unpause mandates from their UPI app. And Razorpay's FAQ says card holders can pause, resume and cancel active subscriptions from the portal their bank provides. Every one of those doors leads to a failed charge on your side.

The card retry schedule: T, T+1, T+2, T+3

For cards, Razorpay's retry model is short and fixed. From the Payment Retries page:

  1. Let T be the charge day. On T, Razorpay attempts to charge the card.
  2. If the charge fails, the subscription moves to pending, and Razorpay tries again on T+1.
  3. If that fails, it tries twice more, on T+2 and T+3.
  4. If the charge still fails, the subscription moves to halted.

That is four attempts over four days: the original charge and three retries. Razorpay's test mode guide describes the same thing from the other end. Each failed charge pushes the next charge by one day, and four failures in a row move the subscription to halted with the subscription.halted event.

One useful detail from that test guide: a manual "Attempt Charge" does not use up a retry. So if you charge an invoice by hand while the subscription is pending, you are not burning one of the automatic attempts.

Is the count configurable? You will see blog posts claiming you can change the Subscriptions retry count in the Dashboard. We could not find that anywhere in Razorpay's docs, so treat it as unconfirmed.

UPI AutoPay: one notice, up to four attempts

UPI works differently, because every debit hangs off a pre-debit notification, or PDN. RBI requires the notification at least 24 hours before the debit. NPCI's AutoPay page says the same.

Razorpay's UPI recurring payments page lays out the rules it works under:

  • NPCI allows up to 3 retries against one PDN, so one PDN can carry 4 debit attempts in total.
  • NPCI allows one successful execution per PDN. Once the attempts on a PDN are used up, any further try needs a new order, which raises a new PDN.
  • On Razorpay's recommended "coupled" flow, Razorpay sends the PDN, attempts the debit 25 hours later, and runs retries according to a retry template.
  • On the "decoupled" flow, you control timing yourself and Razorpay does not retry at all.

The retry templates are where it gets interesting:

TemplateDebit attemptsWhen retries happenFinal status by
Hourly retries (default)31 hour and 2 hours after a failed debitabout 42 hours
3 hourly retries43, 6 and 9 hours after a failed debitabout 42 hours
Daily (24 hours retries)424, 48 and 72 hours after a failed debitabout 120 hours (T+5)
No retries1noneabout 32 hours

Look at the first row. NPCI allows 4 attempts per PDN, but Razorpay's own default template uses 3. If you never touch the setting, you leave one allowed attempt on the table. That is not a bug, it is a default, but it is worth knowing.

Also note the waiting. On the coupled flow the payment sits in created from the moment the PDN is raised until an attempt succeeds or every retry is used up. Razorpay says it does not send a final status before that point. So "did the renewal go through?" can take close to two days to answer on the default template, and up to five on the daily one.

The peak hour blackout

Here is a rule that surprises people. Razorpay's page, citing NPCI circular OC 215A, says UPI AutoPay debits and their retries cannot run in two windows each day:

  • 10:00 to 13:00 IST
  • 17:00 to 21:30 IST

Mandate registration is not affected. An attempt that falls in a window is moved to a later non-peak slot. Razorpay says it does not release all the deferred attempts the instant a window closes, since that would just move the traffic spike to 13:00. It queues them in arrival order and spreads them across the non-peak hours.

Some debits are exempt, per the same page: the first debit within 5 minutes of mandate registration, any execution the customer approves with their UPI PIN, FASTag and RuPay NCMC top ups, and several insurance, broker, financial and loan repayment merchant codes. A normal SaaS subscription is not on that list.

Razorpay's Subscriptions FAQ adds one more timing note: UPI AutoPay debits are processed and completed by 9:00 PM IST on the scheduled debit date, and because of retries this may extend to T+1.

A small simulation of both schedules

To see the schedules side by side, we wrote a short script that applies the documented rules and ran it on this VM. It does not call Razorpay. It only lays out when attempts would happen if every attempt failed. Two simplifications are ours and are written into the code: a deferred UPI attempt is parked exactly at the end of the peak window (Razorpay may run it later), and template offsets are counted from the first failed attempt.

python
"""Simulate Razorpay's documented retry schedules for a failed renewal.

Rules come from Razorpay docs (fetched 2026-12-05):
- Cards: charge on T. On failure the subscription goes `pending` and Razorpay
  retries on T+1, T+2 and T+3. If all fail, it goes `halted`.
  `subscription.pending` fires on each failed attempt, `subscription.halted`
  when retries run out.
- UPI AutoPay, coupled flow: the PDN goes out, the first debit is attempted
  25 hours later, retries follow the merchant's retry template, and attempts
  that land in NPCI peak hours (10:00 to 13:00 and 17:00 to 21:30 IST) are
  moved out of the window.

Simplifications (ours, not Razorpay's):
- A deferred UPI attempt is placed exactly at the end of the peak window.
  Razorpay says it queues deferred attempts FIFO and spreads them across
  non-peak hours, so real attempts can land later than this.
- Template offsets ("3, 6 and 9 hours after a failed debit") are measured
  from the first failed attempt.
"""
from datetime import datetime, timedelta

PEAKS = [((10, 0), (13, 0)), ((17, 0), (21, 30))]


def out_of_peak(t):
    for (h1, m1), (h2, m2) in PEAKS:
        start = t.replace(hour=h1, minute=m1, second=0, microsecond=0)
        end = t.replace(hour=h2, minute=m2, second=0, microsecond=0)
        if start <= t < end:
            return end, True
    return t, False


def card_run(charge_day, succeed_on=None):
    """succeed_on: index of the attempt that succeeds (0 = T), or None."""
    print(f"Card subscription, renewal due {charge_day:%a %d %b %Y}")
    status = "active"
    for i in range(4):
        day = charge_day + timedelta(days=i)
        label = "T" if i == 0 else f"T+{i}"
        ok = succeed_on == i
        if ok:
            status = "active"
            print(f"  {label:<4} {day:%a %d %b}  attempt {i + 1}: success  -> {status:<7} webhook subscription.charged")
            return
        status = "pending"
        print(f"  {label:<4} {day:%a %d %b}  attempt {i + 1}: failed   -> {status:<7} webhook subscription.pending")
    status = "halted"
    print(f"  retries used up                    -> {status:<7} webhook subscription.halted")
    nxt = charge_day + timedelta(days=31)
    print(f"  next cycle {nxt:%d %b}: invoice issued, no auto-charge while halted")


TEMPLATES = {
    "Hourly retries (default)": [1, 2],
    "3 hourly retries": [3, 6, 9],
    "Daily (24 hours retries)": [24, 48, 72],
}


def upi_run(pdn_at, name, offsets):
    print(f"UPI AutoPay, template '{name}', PDN sent {pdn_at:%a %d %b %H:%M} IST")
    first_planned = pdn_at + timedelta(hours=25)
    first, moved = out_of_peak(first_planned)
    note = f" (planned {first_planned:%H:%M}, peak hours)" if moved else ""
    print(f"  attempt 1: {first:%a %d %b %H:%M}{note}")
    for n, h in enumerate(offsets, start=2):
        planned = first + timedelta(hours=h)
        t, moved = out_of_peak(planned)
        note = f" (planned {planned:%H:%M}, peak hours)" if moved else ""
        print(f"  attempt {n}: {t:%a %d %b %H:%M}{note}")
    print(f"  attempts on this PDN: {1 + len(offsets)} of the 4 NPCI allows")


if __name__ == "__main__":
    card_run(datetime(2026, 12, 1))
    print()
    card_run(datetime(2026, 12, 1), succeed_on=2)
    print()
    pdn = datetime(2026, 11, 30, 9, 0)
    for name, offs in TEMPLATES.items():
        upi_run(pdn, name, offs)
        print()

The output, pasted as it came out:

text
Card subscription, renewal due Tue 01 Dec 2026
  T    Tue 01 Dec  attempt 1: failed   -> pending webhook subscription.pending
  T+1  Wed 02 Dec  attempt 2: failed   -> pending webhook subscription.pending
  T+2  Thu 03 Dec  attempt 3: failed   -> pending webhook subscription.pending
  T+3  Fri 04 Dec  attempt 4: failed   -> pending webhook subscription.pending
  retries used up                    -> halted  webhook subscription.halted
  next cycle 01 Jan: invoice issued, no auto-charge while halted

Card subscription, renewal due Tue 01 Dec 2026
  T    Tue 01 Dec  attempt 1: failed   -> pending webhook subscription.pending
  T+1  Wed 02 Dec  attempt 2: failed   -> pending webhook subscription.pending
  T+2  Thu 03 Dec  attempt 3: success  -> active  webhook subscription.charged

UPI AutoPay, template 'Hourly retries (default)', PDN sent Mon 30 Nov 09:00 IST
  attempt 1: Tue 01 Dec 13:00 (planned 10:00, peak hours)
  attempt 2: Tue 01 Dec 14:00
  attempt 3: Tue 01 Dec 15:00
  attempts on this PDN: 3 of the 4 NPCI allows

UPI AutoPay, template '3 hourly retries', PDN sent Mon 30 Nov 09:00 IST
  attempt 1: Tue 01 Dec 13:00 (planned 10:00, peak hours)
  attempt 2: Tue 01 Dec 16:00
  attempt 3: Tue 01 Dec 21:30 (planned 19:00, peak hours)
  attempt 4: Tue 01 Dec 22:00
  attempts on this PDN: 4 of the 4 NPCI allows

UPI AutoPay, template 'Daily (24 hours retries)', PDN sent Mon 30 Nov 09:00 IST
  attempt 1: Tue 01 Dec 13:00 (planned 10:00, peak hours)
  attempt 2: Wed 02 Dec 13:00
  attempt 3: Thu 03 Dec 13:00
  attempt 4: Fri 04 Dec 13:00
  attempts on this PDN: 4 of the 4 NPCI allows

Two things jump out. A PDN sent at 09:00 puts the first planned attempt at 10:00 the next day, right inside the morning blackout, so it slides to the afternoon. And the default hourly template squeezes all its attempts into one afternoon. If the customer's salary arrives the next morning, every attempt has already failed. The daily template spreads attempts over four days, which is why Razorpay recommends it for SIP instalments, to catch "salary-credit and payday cycles".

Timeline: card retries on T, T+1, T+2, T+3 then halted; UPI attempts on the debit day with NPCI peak hours shaded

Pending and halted are not the same

Two states carry a failed renewal, and the difference matters for your code.

pending means an automatic charge failed and Razorpay is still retrying. Razorpay's states page says it continues to retry while the subscription is in this state. During pending:

  • The subscription.pending event fires. Razorpay's webhook reference says it fires again on each failed retry, so a card subscription that fails all four times sends it four times. Your webhook handler must be fine with that.
  • If the customer changes their card, Razorpay automatically charges the last invoice. If that works, the subscription goes back to active.
  • You or the customer can also try a manual charge on an older unpaid invoice.

halted means all retries are used up. This is where people get caught out. From Razorpay's states page:

  • Invoices keep being generated for every billing cycle. They are just not charged automatically.
  • A subscription can stay halted for more than one cycle. So a customer who went dark in March can have March, April and May invoices all sitting unpaid.
  • When the subscription goes back to active, the earlier charges are not tried again. Only future cycles are charged automatically.

That last point decides your revenue. If a halted customer adds a new card in May, Razorpay starts charging from the next cycle. The unpaid March and April invoices do not collect themselves. Razorpay's retries page says it plainly: invoices for such subscriptions are still created, "we will not charge these invoices. You will have to charge them manually."

stateDiagram-v2
  active --> pending: auto-charge fails
  pending --> pending: retry fails (subscription.pending again)
  pending --> active: retry succeeds, or new card charges last invoice
  pending --> halted: all retries used (subscription.halted)
  halted --> halted: new cycle, invoice issued, not charged
  halted --> active: new card charged, or old invoice charged manually
  note right of halted
    Back in active, past invoices
    are NOT retried. Only future
    cycles charge automatically.
  end note

Getting a halted subscription moving again

Razorpay gives you two ways back to active, and both are on its states page:

  1. The customer authenticates another card, and Razorpay manages to charge it.
  2. You or the customer manually charge an older unpaid invoice, and it goes through.

For the manual route on cards, Razorpay's example is the obvious one. The customer had insufficient balance, gets the failure email, adds money, and tells you. You then attempt a manual charge on the invoice from the Dashboard, which works as long as the invoice is still in the issued state.

For the new card route, there are three doors:

  • The failure email. Razorpay emails the customer when an auto-charge fails, with a link to change the card linked to the subscription.
  • Your own checkout. Pass subscription_card_change: 1 to Razorpay Checkout to let the customer change card details there.
  • Razorpay's hosted page. The failure email link opens a page where the customer can retry the same card, update the card, or switch payment method. Switching has limits: a card subscription can move to card, UPI or Emandate, but a UPI or Emandate subscription can only move to a card.

UPI has hard limits here, from the FAQ: you cannot update a subscription authorised via UPI, you cannot create an extra charge on it, and you cannot charge a UPI handle manually. For a UPI customer, the manual charge path above does not exist. Your recovery tool is getting them to set up payment again.

And for Emandate, retries only happen after the bank confirms or rejects the last payment, which Razorpay says can take more than 24 hours.

What you should build yourself

Razorpay does some customer messaging for you, but only if you let it. When you create a subscription, customer_notify: true (the default) means Razorpay handles communication. false means you do. Either way, Razorpay's docs say the decision about access is yours: when the pending and halted webhooks arrive, "you can then decide to hold off the delivery of the service as per your business model".

So here is what a merchant should build, based on what the platform does and does not do. This is a design checklist, not something Razorpay ships.

1. Listen for both events. Subscribe to subscription.pending and subscription.halted. Store the state on your side. Remember that pending repeats on every failed retry, and that Razorpay does not guarantee event order, so use the event ID to skip duplicates (Part 4 covers this).

2. Pick a grace rule. Decide what a pending customer gets. Cutting access on the first failure punishes someone whose bank just had a bad hour. Keeping access forever teaches people that paying is optional. A common middle ground is full access while pending, with access limited once halted.

3. Show an in-app banner. Email is easy to miss. If the customer logs in while pending or halted, tell them in plain words: "Your last payment did not go through. Update your card to keep your plan." Link it straight to the card change flow.

4. Send your own short email sequence, if you turned customer_notify off. Keep it human: what happened, what they lose and when, one button to fix it. Do not send it during the retry window if you know a retry is minutes away.

5. Use the pre-debit notice. The bank already sends a notice at least 24 hours before each debit. If your own system knows a card expires before the next renewal, you can warn the customer before the failure happens, not after.

6. Clean up halted invoices. When a halted customer comes back, decide what to do with the unpaid invoices from the gap. Charge them, cancel them, or forgive them, but decide on purpose, because Razorpay will not retry them for you.

sequenceDiagram
  participant R as Razorpay
  participant S as Your server
  participant C as Customer
  R->>S: subscription.pending (attempt failed)
  S->>S: mark pending, keep access, dedupe by event id
  S->>C: in-app banner + "update card" link
  R->>C: failure email with change-card link (if customer_notify is true)
  alt customer fixes it
    C->>R: new card or manual charge succeeds
    R->>S: subscription.activated / subscription.charged
    S->>C: banner gone, thank you note
  else retries run out
    R->>S: subscription.halted
    S->>S: limit access, flag unpaid invoices
    S->>C: last reminder with fix link
  end

How much churn is involuntary?

This is where the internet gets loose with numbers, so here is only what we could trace to a named source.

  • 20% to 40% of total churn, according to a Recurly blog post from April 29, 2026. Recurly calls it "an estimated" range and does not give the method. Recurly sells billing and recovery software, so read it as a vendor estimate.
  • Recovery can move a lot. The same Recurly post says that in analysis of enterprise transaction data, optimised retry strategies improved failed payment recovery rates from about 53% to 71%.
  • Speed matters. Recurly also says 90% of recovered transactions happen within the first 10 days of a failed payment. Razorpay's card schedule gives up after day T+3, so anything you want to recover after that is on you.
  • Price matters. Recurly's churn benchmarks page (data published July 29, 2026) says that in its $250+ per customer cohort, median annual churn is 3.54% with involuntary churn at just 0.18%. The page's explanation is that higher value subscribers tend to use better payment methods and fix failed payments themselves.

Two honest caveats. First, all of these come from Recurly's own network, which is not India and not UPI. We found no published Indian figure for involuntary churn on UPI AutoPay or card mandates. Second, the Recurly benchmarks page is a live chart, and the text we could read did not include its full voluntary versus involuntary table, so we have not quoted the industry splits that other sites copy from it.

What you can say with confidence: a customer who fails a renewal did not choose to leave, the platform gives you four days of card retries and then stops, and what happens after that depends on what you built.

What's next

A failed renewal is the unhappy path. The other edge of billing is when the customer wants to change something: upgrade from ₹499 to ₹999 in the middle of a month, add something extra, use a coupon, or get money back. Next up: invoices, upgrades, add-ons and coupons in subscription billing, including a proration calculation you can run.

Sources