Skip to content
EN
Book a demo

HomeGuides

How to Recover Failed Subscription Payments Across PSPs

How to recover failed subscription payments comes down to three moves: sort the decline, retry only what can still succeed on a schedule, and ask the customer for a new card when the decline is final. Most of the work is deciding which failures deserve another attempt.

On this page

This guide shows how to handle failed subscription payments and retry logic for the engineer or billing lead who owns renewals. The steps hold on any billing stack. They get easier when the card sits behind a token that isn't tied to one provider.

01Before you start

Failed renewals touch billing, payments and support, so gather the pieces and the people before you change a retry timer. The table shows what to have in hand.

What you need Who owns it Where it comes from
A list of decline reasons your provider returns Payments engineer The provider's API documentation and a month of your own failed attempts
The card stored as a reusable token Payments engineer Your vault or your provider's token service
Your billing calendar and grace period Billing lead The plan terms customers accepted
An email or in-app message for a failed charge Product or support Your messaging tool
A sandbox or test account Payments engineer Your provider or your payment layer

Pull a sample of real failures. A hundred rows from last month's renewals will teach you more than any generic list of decline codes, because they show which reasons your own customers and your own provider actually produce.

02How to recover failed subscription payments, step by step

  1. 01 Sort every failure into soft or hard

    A soft decline can pass later or elsewhere: insufficient funds, a timeout, an issuer that was briefly unavailable. A hard decline won't: a closed account, a lost card, a card reported stolen. Open your provider's API documentation and find the field that carries the decline reason, then map each value it can return to one of two groups.

    Write the map down as a table your code reads. An unknown reason defaults to the cautious group, which is hard.

  2. 02 Keep a token, not a card number

    A retry sends the same card again, so your system needs something it can reuse without holding the number. Store a token. Check where it lives: a token issued by a single provider only works with that provider, which matters in step 5. Done well, a renewal job charges a customer with nothing but a customer ID and a token. The card number never appears in that job.

  3. 03 Write the retry schedule per decline class

    Decide how many attempts a soft decline gets and how far apart they fall. A funds problem often clears after the customer's next pay date, so spacing attempts across a few days usually works better than three tries in an hour. A hard decline gets none.

    Look up each card scheme's current rules on repeated attempts before you pick numbers, because the schemes publish limits and change them. Put the schedule in configuration, not in code, so billing can adjust it without a release.

  4. 04 Charge as a merchant-initiated renewal

    A renewal happens without the customer present, so it has to be flagged as such when it reaches the provider. In the EEA the first payment of a subscription usually carries strong customer authentication, and later charges can rely on that earlier consent. Read the rules in the PSD2 technical standards and ask your provider how it expects a renewal to be marked.

    If an issuer still asks for authentication on a renewal, the retry can't succeed alone. The customer has to come back and confirm.

  5. 05 Send soft declines to a second provider

    A soft decline from one provider isn't always a soft decline everywhere. A different acquirer, reached with the same card, sometimes gets an approval. Route the retry there inside the same payment flow instead of waiting for the next day.

    This step needs the token from step 2 to travel. With provider-bound tokens, you need one stored card per provider, which is why teams skip it. Keep the retry on the first provider until the token problem is solved.

  6. 06 Tell the customer, then make the fix easy

    Send the message when the first attempt fails, not after the last. Say which plan, which card (last four digits only) and what happens next. Link to a page where the customer can change the card without logging in to a long flow.

    Add a reminder before the final attempt. A clear email gives the customer a way to fix the card, which a silent retry doesn't.

  7. 07 Update cards before they expire

    Some failures never need to happen. Expired cards are predictable, so look at the expiry month of every stored card and start asking for a new one early. Ask your provider whether it offers automatic card updates through the card schemes, and how a replaced card number reaches your token.

    Done well, an expiry date in your data produces a message weeks before it can block a renewal.

  8. 08 Set the end of the road

    Decide what happens when the last attempt fails. Pick a grace period during which the customer keeps access, then a downgrade, then a cancellation. Record each state change with a reason so support can answer "why was I cancelled?" from one record.

    Count recovered and lost renewals separately, by decline class, and compare each class before and after any change to the schedule or the messages, so that you can tell which of the two helped. If hard declines make up most of your losses, the fix lives in messaging. Retries won't help there, however clever the schedule.

03Testing before real traffic

Run each scenario in a sandbox first, then in a small live cohort. A plain checklist keeps the test honest.

  • A soft decline retries on the schedule and stops after the last attempt.
  • A hard decline triggers the customer message and no retry.
  • A retry sent to a second provider keeps the same customer and subscription records.
  • A card update arriving mid-cycle replaces the stored card before the next attempt.
  • A duplicate retry request does not charge the customer twice.
  • Cancelling the subscription during the grace period stops every pending attempt.

Keep the log of each test run. When a check fails, it shows what the retry actually did. Once all six pass, move one low-risk plan to live traffic for a full billing cycle.

04Rolling back, and what goes wrong

Retries charge twice when two jobs pick up the same failed payment. Guard each attempt with a key built from the subscription and the billing cycle, and refuse a second attempt that carries the same key. If a double charge slips through, pause the retry job and refund the extra charge before you debug anything else.

Retries that run too fast can look like abuse to an issuer. A burst of attempts on the same card is the pattern to avoid. If decline rates rise after a schedule change, restore the previous schedule from configuration and compare a week of results.

A second provider can fail in a different way. Its decline reasons use their own words, so your soft and hard lists may misread them. Add its values to the map before sending real retries there.

Customers cancel after a bad message. If cancellations jump after you launch step 6, shorten the message and remove anything that sounds like a threat. Keep the rollback switch for messaging separate from the switch for retries.

05Where the platform does these steps

Steps 2, 3 and 5 are the ones that multiply with every provider you add. In our payment layer, cards go into an end-to-end encrypted vault and renewals use tokens. Retries run on a flexible schedule with multiple attempts, and soft declines can move to another provider within one payment flow.

Billing cycles and card updates build on those same tokens, as the recurring engine page shows.

You still own the decline map, the messages and the grace period. Status updates reach your billing system through webhooks, and every call is recorded in logs you can check against your own.

06FAQ

What is the difference between a soft and a hard decline?

A soft decline is temporary and can pass on a later attempt, for example insufficient funds or an issuer timeout. A hard decline is final, such as a closed account or a stolen card. Retry soft declines on a schedule and ask the customer for a new card after a hard one.

How many times should I retry a failed subscription payment?

There's no single number. Card schemes publish their own limits and change them, so read the current rules and check them with your provider. Spread soft-decline retries over several days, set the count in configuration and measure recovered renewals per attempt to find where more tries stop helping.

Can I retry through a different PSP?

Yes, if the card is stored as a token that your system, or your payment layer, can use with more than one provider. A token issued by a single provider only works there. Move the card into a vault first, then send soft declines to a second route within the same payment flow.

When should I ask the customer for a new card?

Ask on the first failure when the decline is hard, and before the final attempt when it's soft. Include the plan, the last four digits of the card and a simple update page. A message that arrives only after cancellation comes too late to help.

How to handle failed payments in automated billing systems without double charges?

Give every retry a key built from the subscription and the billing cycle, and let the billing system refuse a second attempt with the same key. Log each attempt with its decline reason. That record settles disputes with customers and shows whether a schedule change helped.

Next step

Keep renewals running when one provider says no

A failed renewal is revenue you already won once. If you want to see how a retry schedule and a second route would sit on the providers you already use, talk to us.

Book a demo

Map your integrations onto one API

We look at the providers you run today and what moving them behind one API would take.