Skip to content
EN
Book a demo

HomeGuides

How to Set Up Payment Failover Across Connected Providers

How to set up payment failover starts with a definition. Decide which failures should send a payment to another provider, which shouldn't, and who may change that list. After that, the work is writing the rules once, testing every case and moving traffic in small steps.

On this page

Failover protects revenue in two situations. A provider has an outage or goes slow, or it declines a payment for a reason that another provider wouldn't. This guide covers both, and it assumes your providers are already connected behind one layer, so that a rule change doesn't mean a code change in your checkout.

01Before you start

Failover needs a second provider to send payments to. These are the items to collect first.

What you need Who owns it Where it comes from
At least two providers able to take the same payments Head of payments Your existing agreements
Each provider's limits, supported cards and currencies Payments engineer Their documentation and account settings
A definition of an acceptable response time Engineering lead Your checkout's own timeout settings
A record of past outages and slow periods Operations lead Your incident log and provider status notices
An owner who can approve rule changes in a hurry Payments lead Your change policy

If you have only one provider today, add the second one before you design anything else. A fallback with no destination does nothing.

02How to set up payment failover: step by step

  1. 01 Name the failures you want to survive

    Write down what counts as a trigger. The usual candidates are a timeout, a provider outage, a response your system can't map to a known status and a soft decline, which means the issuer or provider declined for a reason that may not hold on another route.

    Then write down what doesn't trigger a retry. A decline for a lost or stolen card, or for a failed fraud check, shouldn't be sent to a second provider. A retry there may cost you fees and add attempts that an issuer can read as suspicious. You see the result as two short lists, one headed "retry elsewhere" and one headed "stop here".

  2. 02 Pick the backup for each primary route

    For every primary route, choose the provider that takes over. Match the basics first. The backup must accept the same card brands, the same currency and the same method. Then check the commercial terms, since a backup that costs far more may be right for a rare event and wrong for every soft decline.

    Draw it as a small table with the primary on the left and one or two backups on the right, in order. Where the chosen backup has lower limits, write the limit beside it.

  3. 03 Set the time you'll wait

    A timeout is a decision about how long a customer waits on a loading screen. Take your checkout's own limit and subtract the time a second attempt needs. The result is the longest a first provider may take before you try another.

    If you set the wait too short, you'll abandon payments that were about to succeed and risk charging twice. If you set it too long, customers give up first. Agree the number with engineering and write it down.

  4. 04 Guard against paying twice

    Any retry creates a risk that the first attempt actually went through. Ask each provider how it reports an unknown outcome and how you can look up the state of an earlier attempt. Ask whether your platform ties the attempts of one payment together under one reference.

    Read the answers in the documentation, and treat a vague one as a gap to fix before go-live. What you want to see after this step is a written rule for each provider that says what happens when the first attempt's result is unknown.

  5. 05 Write the failover rules once

    Now put the lists from step 1 and the table from step 2 into the layer as rules. Each rule says which trigger sends which payments to which backup, and in what order. Keep the set small and readable.

    Write rules at the level of the layer, not per provider. If a rule is copied into each provider's setup, then a change means several edits and a risk of drift. One rule set that applies to every connected provider is easier to review and easier to roll back.

  6. 06 Add a limit to the retries

    A payment shouldn't bounce between providers without end. Set a maximum number of attempts for one payment, and decide what the customer sees when all attempts fail. The message should say that the payment didn't go through and what they can do next.

    Count attempts in your reports too. A spike in second attempts is an early sign that the primary route is degrading, long before anyone files a ticket.

  7. 07 Simulate every trigger in the sandbox

    Use the sandbox to recreate each trigger from step 1: a slow provider, an unavailable provider, a response that can't be mapped, a soft decline and a hard decline. Check which backup takes the payment each time, and what status your system ends with.

    If the sandbox can't simulate a trigger, ask the vendor how to reproduce it, and record the answer. Don't mark a case as tested because it looked plausible on paper.

  8. 08 Move traffic in stages and drill it

    Switch on failover for one merchant, one country or one method first. Watch the second-attempt count and the final outcomes for a few days. Then widen the scope.

    Once it's live, schedule a drill. Take a provider out of a test route on purpose and confirm the backup takes over without anyone editing code. A rule you never exercised is a rule you can't trust during a real incident.

03Testing before real traffic

Before live traffic uses the rules, confirm each of these with a test payment and write down who ran it.

  • A simulated timeout on the primary goes to the first backup within the wait time you set.
  • A simulated outage on the primary and the first backup reaches the second backup, or ends with a clear failure.
  • A soft decline retries elsewhere, and a hard decline doesn't.
  • An unmapped response from a provider is treated as a trigger, not as a success.
  • A payment never shows as charged twice in your records.
  • Every attempt appears in logs with its provider and its result.

Run the same list again after any change to the rules, even a small one.

04Rolling back, and what goes wrong

Retries multiply declines. If a backup declines too, the customer's bank sees several attempts, and repeated attempts can look odd to an issuer. Cap the attempts and watch the issuer-level numbers after the first week.

The backup is overloaded. When a large provider fails, all its traffic lands on your backup at once, and the backup's own limits may bite. Agree limits and expected volumes with the backup provider before you need it.

The rule set is wrong during an incident. Keep the previous version, with a date, so that you can restore it quickly. Rolling back a rule should never require a deployment.

Nobody notices that failover fired. A rule that works silently looks the same as a rule that never ran. Add an alert or a daily check on second attempts, so that the first sign of trouble doesn't come from a customer.

05Where the platform does these steps

The platform applies failover rules across every connected provider from one place. The triggers include soft declines, timeouts, provider outages and inconsistent status codes, and soft declines are retried across providers within one payment flow.

Analytics show approval rates, declines and latency, so you can see whether a backup route earns its place. The sandbox mirrors production settings, so you can try the step 7 triggers it can simulate before real traffic arrives, and ask in a demo how to reproduce the rest. The cascade rules page explains how one payment flows through several providers.

06FAQ

How do you implement failover logic in a payments stack?

Define the triggers, pick an ordered backup for each route, set the time you'll wait and cap the retries. Put the rules in one layer above your providers, then test each trigger in a sandbox before you move live traffic.

How reliable is payment failover in practice for high-volume merchants?

Failover is as reliable as its preparation. Backups with matching limits, a tested set of triggers and regular drills make failover work when you need it. An untested rule set often fails at the worst moment, when volume is highest.

How can travel companies set up PSP failover and smart routing?

Travel payments often cross currencies and carry large amounts, so list the providers that handle each currency and amount range. Route to them by rule, then add a backup per route. Test the cases around peak booking days.

Should every decline be retried on another provider?

No. Retry soft declines, timeouts and outages. Don't retry declines that signal a lost card, a stolen card or a failed fraud check, because another provider will get the same answer.

Next step

Plan your failover with a working sandbox

Bring your trigger list and your backup table, and we'll walk through them in the sandbox against your own providers. Talk to us about failover.

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.