Platform

Solutions

Resources

Platform

Solutions

Resources

Payment orchestration guide › Implementation

Payment gateway failover: how it works, and when it’s worth it

Payment gateway failover explained for subscription businesses: what it is, what should trigger it, why renewals are the hard part, and how to build it without regret.

Published:

·

15 min read

Illustrated cover for: Payment Processor Failover Architecture: The Engineering Guide to 99.99% Uptime for SaaS Billing

Payment gateway failover is a backup plan for the moment your payment provider stops answering. When one gateway goes down or starts failing, payments move to a second one automatically, and your customers never find out how close they came to an error page.

For a subscription business, that moment tends to arrive at the worst possible time. Renewals cluster. If thousands of them go out on the first of the month and your only processor is having a bad morning, they fail together, and some of those customers won’t come back to try again.

Failover is also one of the most oversold ideas in payments. It won’t rescue a card the bank has declined for a good reason. And for most subscription businesses, the hardest part comes after the switch: getting stored cards and renewals to work at the second provider at all.

A declaration of interest before we go further. OpenByte sells billing and payments software with failover built in. That’s exactly why this guide spends as long on when you don’t need failover as on how to build it. Where the evidence is thin, we’ll say so.

The short version

What it is: automatic rerouting of payments to a backup provider when your main gateway fails or degrades.

What triggers it: outages, timeouts, gateway errors and some soft declines. Never hard declines.

What it isn’t: a cure for declines, a way round the card networks’ retry limits, or something that works for renewals unless your stored cards can move.

Who needs it: businesses whose revenue is concentrated in renewal runs, or who can name the outage that cost them money.

What is payment gateway failover?

Payment gateway failover is the automatic switching of payment traffic from a failing payment gateway to a backup one. A monitoring layer watches each provider’s errors, timeouts and success rates. When they cross a set threshold, new payment attempts go to the backup until the primary recovers.

You’ll also see it called payment failover or payment processor failover.

“Gateway” is used loosely here. You might be failing over between two payment service providers (PSPs), two acquirers behind one gateway, or two regional accounts with the same provider. The logic is the same. What changes is how much of your card data and payment history can travel with the payment.

Failover needs at least two live providers, so the real first decision is whether to run multiple payment gateways at all. That means a second contract, a second integration, reconciliation across both, and a second set of fees. Failover is a good reason to take that on. It shouldn’t be the only one.

Failover, routing and retries: three different jobs

Failover often gets confused with two close relatives. They solve different problems, and most growing subscription businesses end up needing all three.

Job

What it does

When it acts

Read more

Failover

Moves traffic away from a provider that’s failing

During outages, timeouts and error spikes

This guide

Payment routing

Picks the best provider for each payment

On every payment

What is payment orchestration?

Payment retries

Tries the same payment again later

After a soft decline

Why payment retries fail at scale

The overlap is where people get into trouble. Payment failover routing (some say payments failover routing) means sending a single declined payment straight to a second provider. It belongs to both failover and routing, and it’s the move most likely to break card network rules if you do it carelessly, which is why the next section matters more than any architecture diagram.

What should trigger failover, and what never should

Failover should react to problems with the provider, never to problems with the card. Sorting the two apart is most of the skill, and the table below is the version we’d pin above any engineer’s desk.

What went wrong

Example signals

Fail over?

Provider outage

Connection refused, 5xx errors, status page incident

Yes, immediately

Provider degraded

Timeouts, latency spikes, error rate well above normal

Yes, once it crosses your threshold

Gateway rejection

The gateway refuses the request before it reaches the bank

Usually yes

Soft decline from the issuer

“Issuer temporarily unavailable”, “do not honour”

Sometimes, by rule

Hard decline

Lost or stolen card, closed account, invalid number

Never

“Do not retry” codes

Visa Category 1, Mastercard advice codes 03 and 21

Never

In practice, a sensible rule set reroutes on provider errors and on a short, named list of soft decline reasons, such as “issuer temporarily unavailable”. It never reroutes a hard decline, however tempting the lost sale.

The “never” rows aren’t a matter of taste. Visa Category 1 means “the issuer will never approve the transaction”, and Mastercard’s advice codes 03 (“do not try again”) and 21 (payment cancelled, for example a cancelled recurring agreement) both mean stop, according to PayPal’s acquirer guidance. Retrying them elsewhere just adds fees.

Remember that a payment sent to a second provider is a second authorisation on the card networks, and the networks count them.

Visa allows 20 retries in 30 days for declines the issuer can’t approve right now, and raised its excess-retry fees in April 2026. Mastercard’s thresholds are 10 retries in 24 hours or 35 in 30 days for the same card.

Checkout payments add one more wrinkle: 3D Secure. If the customer authenticated with one provider, that authentication may not survive the trip to another.

Adyen’s documentation is clear that you cannot reuse authentication data across PSPs once an authorisation has failed. Expect some customers to be challenged twice.

Our view. If your failover rule is “any decline goes to provider B”, all you’ve built is a way to pay excess-retry fees twice. Fail over on provider health. Treat declines as a retry decision, with its own rules.

The part most guides skip: renewals and stored cards

Most failover guides are written for checkout, where the customer is present and types their card in. Subscription renewals are different. The customer isn’t there, the card was stored months ago, and the second provider has never seen it. That’s where most subscription failover plans quietly fall apart.

The problem is tokens. When a provider stores a card for you, it hands back a token that usually only works with that provider. Recurly’s documentation says it directly: if only a gateway token is stored, “gateway failover to other providers is not possible”, and gateway tokens “are not transferable between gateways”.

Even platforms that offer a backup gateway may limit it to new customers. In Recurly, a backup gateway applies only to the signup transaction. Its automatic gateway failover pauses renewals until the primary gateway recovers. Renewal failover is genuinely hard, and this is where the difficulty shows. Our comparison of Recurly alternatives looks at what that means in practice.

Three things decide whether your renewals can fail over:

Requirement

Why it matters

What to check

Portable card storage

A token from provider A means nothing to provider B

Do you hold cards in a provider-neutral vault, or only as gateway tokens?

Network tokens

Card-scheme tokens aren’t tied to one gateway, but whoever requested them controls their use

Who is the token requestor: you, your vault, or your PSP?

Stored-credential history

Renewals are merchant-initiated and must reference the original transaction

Can you pass the original network transaction ID to the second acquirer?

Network tokens deserve a closer look, because they’re often sold as the answer. They can be: Recurly notes that network tokens enable failover across gateways. But it depends on who requested them.

Adyen-managed network tokens, for instance, can’t be used with external acquirer connections, though Adyen can forward them to another PCI-compliant provider. Checkout.com lets you extract its network tokens and cryptograms for use elsewhere. Ask before you rely on it.

The transaction history matters just as much. When a renewal goes through a new provider, the networks expect a link to the original payment. Checkout.com warns that if the scheme can’t find the original transaction ID, “you may see an increase in soft declines”.

For Mastercard, Adyen notes that from 23 October 2026 renewals need both the Trace ID and a Transaction Link Identifier.

Our view. For a subscription business, renewal failover starts with where your cards live. Sort out portable storage first. The monitoring, thresholds and circuit breakers are the easy bit, and they’re useless for renewals if provider B can’t charge the card.

How payment failover works: detect, decide, reroute, reconcile

Under the hood, every payment failover solution does the same four jobs. Whether you build it or buy it, these are the parts to understand and test.

Layer

Its job

What good looks like

Detect

Watch each provider’s health

Tracks error rates, timeouts and latency percentiles, not just “is it up?”

Decide

Choose whether to switch

Clear thresholds and rules, with hard declines excluded

Reroute

Send payments to the backup

Same payment, same idempotency key, no double charge

Reconcile

Make the books add up

One record per payment, every attempt logged, settlement matched across providers

Detection is where most systems are naive. A provider can answer every health check while quietly failing real payments, so watch real transaction outcomes as well as synthetic pings. Decision is where the business rules live. Rerouting is mostly plumbing. Reconciliation is the job everyone forgets until finance asks why the totals don’t match.

Health checks and thresholds: where to start

You’ll find plenty of guides quoting exact thresholds as if they were industry standards. They aren’t. The numbers below are reasonable starting points for a subscription business, and you should expect to tune every one of them against your own baseline.

Signal

Sensible starting point

Tune it by

Latency

Alert when 95th percentile response time doubles your normal level

Your provider’s typical latency by region and payment method

Error rate

Investigate at a few points above baseline; fail over at a sustained, larger jump

Normal error rates differ by provider, card type and country

Timeouts

Fail over after a small number of consecutive timeouts

How long customers will wait at checkout (renewals can wait longer)

Circuit breaker

Open after a burst of failures, then test with a trickle of traffic before closing

How quickly the provider usually recovers

A circuit breaker is the pattern that makes this safe. When a provider fails repeatedly, the breaker “opens” and stops sending it traffic for a cooling-off period. Then it lets a few payments through to test recovery before restoring full traffic. Most languages have mature libraries for it, so there’s no need to write your own.

Recovery deserves the same care as failure. A provider that has just come back is often wobbly. Bring traffic back gradually, starting with a small share, and watch success rates before trusting it with the full renewal run.

Running multiple payment gateways: active-active or active-passive

If you run multiple payment gateways, you have two basic set-ups to choose from. The right one depends less on engineering taste than on how much complexity your finance team can absorb.

Set-up

How it works

Strengths

Costs

Active-passive

One provider takes all traffic; the backup only sees payments during a failure

Simpler reconciliation, one main relationship

The backup is rarely tested, so it may not work when you need it

Active-active

Traffic is split across providers all the time

Every route is proven daily, failover is fast

Two sets of fees, reporting and reconciliation every day

The weakness of active-passive is rarely discussed. A backup gateway that only handles payments during an outage is a backup nobody has tested under load. If you choose it, send a small, steady share of real traffic to the backup anyway. It’s cheap insurance.

Payment gateway redundancy also has levels. Two gateways that use the same acquiring bank protect you from a gateway outage but not an acquirer one. True redundancy means different acquirers, ideally with different network connections. Few subscription businesses need that on day one, but it’s worth knowing which kind you’re buying.

Our view. Run active-passive with a small steady trickle to the backup. You get most of the resilience of active-active without doubling your reconciliation work, and you’ll find out the backup is broken on a Tuesday afternoon instead of on renewal day.

Duplicate charges and idempotency

A failed payment is bad. The worst failover bug is a customer charged twice. That happens when the first provider was slow, not dead: your system gives up, sends the payment to provider B, and provider A quietly completes it a few seconds later.

The defence is idempotency. Every payment gets one unique key that follows it through every attempt, so any provider (and your own system) can recognise a repeat.

Keys don’t last for ever: Stripe, for example, may prune idempotency keys once they’re at least 24 hours old. Across providers, you also need your own record of “this invoice has been paid”, checked before every new attempt.

Ambiguous responses need their own rule. When provider A times out, you don’t know whether it charged the card. A safe pattern is to check the payment’s status with provider A before failing over, or to hold that one payment for a short reconciliation window rather than risk a double charge.

Testing failover before you need it

A failover system that has never failed over is a theory. Test it on purpose, in stages, before an outage tests it for you.

  1. In a test environment, inject latency, errors and dropped connections at each provider and confirm the system switches, reconciles and switches back.

  2. In production, during a quiet period, send a small share of real payments to the backup and compare success rates and settlement.

  3. Run a full drill on a schedule: switch everything to the backup for a short window and time how long it takes.

  4. Write the runbook: who decides on a manual switch, where the provider status pages are, how to roll back, and what to record for the post-incident review.

The drill is the step everyone skips and the one that finds the problems. Expired credentials, missing currencies and a backup account that was never fully approved all tend to surface here, which is far better than finding them during a real outage.

Build or buy?

You can build failover yourself, buy it as part of a payment orchestration layer, or get it from your billing platform. If you’re weighing the wider question, our guide to what payment orchestration is covers the layer most failover lives in.

Option

Good fit when

Watch out for

Build in-house

You have payments engineers and unusual requirements

Months of build, then permanent maintenance and on-call

Orchestration platform

You want several providers behind one API

A new dependency; check the platform’s own uptime and token portability

Billing platform with failover

You want renewals, retries and failover handled together

Whether failover covers renewals or only new signups

Whichever you choose, ask one question first: if we leave, do our stored cards come with us? A failover set-up that locks your cards into one vendor has swapped one single point of failure for another. You can see how we approach it in our payment gateway failover product page.

Do you need payment gateway failover?

Probably not yet, if you take payments through one reliable provider, your renewals are spread across the month and you can’t point to an outage that cost you money. A second provider brings real cost and complexity, and that budget may do more good fixing your dunning.

Outages do happen to well-run providers, and the good ones publish what happened. On 21 April 2025, a DDoS attack hit several of Adyen’s services hosted in Europe. Adyen’s own account describes ecommerce and in-person processing disrupted for about 44 minutes, and some integrations affected for roughly eight and a half hours.

Probably yes, if a large share of revenue renews on the same day, you sell in several countries, or you already run two providers and simply haven’t connected them. In those cases the question is less whether to fail over and more whether your renewals can.

The best way to decide is to cost your own risk. Take your largest renewal day, multiply the revenue by the share of customers who don’t come back after a failed payment, and ask what one bad morning would have cost. If the answer is small, spend your time elsewhere.

Our view. Price your own outage before you price a failover solution. Vendors (us included) will happily quote dramatic industry figures. Your own renewal calendar is a far better guide.

Numbers to ignore

Failover is sold with some alarming statistics. We tried to trace these to a primary source and couldn’t, so we don’t use them, and we’d suggest you don’t rely on them either.

  • “92% of enterprises suffered a payment outage in the last two years.” We couldn’t find the underlying survey or its method.

  • “Businesses lose $1.2 billion a minute during payment outages.” No traceable source, and no clear definition of whose revenue is being counted.

  • “The average SaaS business loses 9% of revenue to failed payments.” Widely repeated, rarely sourced, and it mixes declines with outages.

  • “Failover pays for itself above $500,000 a month.” There’s no basis for a universal threshold. It depends on how your revenue is concentrated.

  • “99.99% uptime” quoted as a guarantee of payment infrastructure uptime. It allows about 52 minutes of downtime a year, and it says nothing about when those minutes fall.

The rest of the payment orchestration guide

Failover is one part of a bigger picture. These guides go deeper on the neighbouring topics:

Frequently asked questions

What is payment gateway failover?

Payment gateway failover automatically moves payments from a failing payment gateway to a backup one. A monitoring layer watches errors, timeouts and success rates, and when they cross a threshold, new payments go to the backup until the main provider recovers.

What is the difference between payment failover and payment routing?

Payment routing chooses the best provider for every payment, based on rules like cost, country or card type. Failover only acts when a provider is failing, moving traffic away until it recovers. Payment failover routing sits between the two: sending one failed payment straight to a second provider.

Should a declined payment fail over to another gateway?

Only some declines. Outages, timeouts, gateway errors and some soft declines can be sent to another provider by rule. Hard declines, such as a lost or stolen card, and network “do not retry” codes should never be retried anywhere, and extra attempts count towards the card networks’ retry limits.

Can subscription renewals fail over to a backup gateway?

Only if the backup can charge your stored cards. Cards held as gateway tokens usually work with one provider only, so renewals can’t fail over. You need provider-neutral card storage or network tokens, plus the original transaction details the networks expect for merchant-initiated payments.

What is payment gateway redundancy?

Payment gateway redundancy means having more than one live route for payments, so a single provider failing doesn’t stop you taking money. Full redundancy uses different acquiring banks as well as different gateways, since two gateways on the same acquirer still share a single point of failure.

Why use multiple payment gateways?

Multiple payment gateways give you a backup during outages, better coverage in different countries, and more bargaining power when negotiating fees. The trade-off is a second integration, second contract and more reconciliation work, so it’s worth doing when one of those benefits clearly pays for the extra effort.

How do you avoid double charges during failover?

Give every payment a unique idempotency key that travels with each attempt, and check your own records before sending a new attempt. When the first provider times out, confirm the payment’s status with it before failing over, because a slow provider may still complete the charge.

How do you test payment failover?

Start by injecting errors and delays in a test environment. Then send a small share of real payments to the backup during quiet periods, and run scheduled drills that switch all traffic for a short window. Time each switch and write down what broke.

Do I need payment failover?

You probably need it if a large share of revenue renews on the same day, you sell across several countries, or an outage has already cost you money. If you use one reliable provider and renewals are spread out, better dunning and retries will usually pay back sooner.

Key takeaways

  • Payment gateway failover moves payments from a failing provider to a backup automatically. It should react to provider health, never to a card being declined.

  • Every rerouted payment is another authorisation on the card networks, and Visa and Mastercard limit retries and charge for excess attempts.

  • For subscriptions, renewal failover depends on where your cards live. Gateway tokens usually can’t be charged by a second provider.

  • Active-passive with a small steady share of traffic to the backup gives most of the resilience with far less reconciliation work.

  • Idempotency keys and regular drills matter as much as the monitoring. A backup nobody has tested is a theory.

Before you buy anything, pull last year’s renewal calendar and find your biggest single renewal day. Work out what a four-hour outage that morning would have cost, including the customers who wouldn’t have come back.

If that number is worth protecting, start by checking whether a second provider could charge your stored cards at all. If it couldn’t, that’s your first project. When you’re ready to see how we handle it, our payment gateway failover page explains.

See payment orchestration on your own numbers

We'll walk through your payment flows and show where routing, retries and failover would recover revenue you are losing today.

“

OpenByte transformed our support organisation. Agents resolve issues in minutes, not cycles. With full billing and payment context in every ticket, we’ve reduced churn and cut our OpEx materially.

Aaron Edwards

Systems & Technical Support Manager, Total Security

See payment orchestration on your own numbers

We'll walk through your payment flows and show where routing, retries and failover would recover revenue you are losing today.

“

OpenByte transformed our support organisation. Agents resolve issues in minutes, not cycles. With full billing and payment context in every ticket, we’ve reduced churn and cut our OpEx materially.

Aaron Edwards

Systems & Technical Support Manager, Total Security

See payment orchestration on your own numbers

We'll walk through your payment flows and show where routing, retries and failover would recover revenue you are losing today.

“

OpenByte transformed our support organisation. Agents resolve issues in minutes, not cycles. With full billing and payment context in every ticket, we’ve reduced churn and cut our OpEx materially.

Aaron Edwards

Systems & Technical Support Manager, Total Security