Skip to content

How-to

How to Set Up Payment Failover Between PSPs

To set up payment failover, you decide which failures are worth a second try, give every route an ordered fallback, cap the attempts, and then break the first route on purpose to see the second one take over. Each step is a decision you write down before an outage forces it on you.

One integration, 700+ ready connectors, a 99.95% uptime SLA, SaaS or your own servers.

Failover only works when a second provider can accept the same payment. So how to set up payment failover is mostly a question of choosing and ordering, with little code in it. The same logic covers PSP failover between acquirers, banks and wallet providers.

Before you start

You need a few facts in hand before you touch any rule. Without them, the fallback order turns into guesses.

  • Two or more connected providers, each already taking live traffic or tested
  • The countries, currencies and card brands each provider accepts
  • A way to see a payment's result and failure reason per attempt
  • The approval rate and timeout rate of your current provider over the last month
  • A person who can approve a rule change in a hurry

With that list ready, assign an owner for the rules and schedule time to test each failure case.

Step by step: how to set up payment failover

1. Name the failures you will retry

Start with the reasons a payment fails, because they don't all deserve a second attempt. Soft declines, timeouts, provider outages and inconsistent status codes can be retried on another route, once you've decided which soft declines permit a retry.

After a timeout or a conflicting response, check the first attempt's status before you try another route. A card reported lost or a wrong security code isn't, since a second acquirer will see the same answer.

Write the retryable reasons as a short list. You'll copy it into the rule in step 4.

2. Give every route a fallback

For each main route, pick the provider that takes over. A route is a slice of traffic, such as cards from one country, one currency or one payment method, and each slice can have a different backup. A fallback that doesn't support the slice's currency or method is a dead end, so check the provider's coverage before you name it.

Keep the chain short. Start with a backup that supports the same payment method and currency, and test whether it stays available when the primary route fails.

3. Order the fallbacks by what you want from them

Decide what the second choice is for. If the first provider is the cheapest and the second is the most reliable, say so, because the order encodes that trade. Our payment routing page shows the rule types, such as BIN, card type, currency, amount, country and payment method, that you can use to split traffic before failover applies.

Write down one reason per fallback. When the order looks wrong in six months, that note is how you'll know why.

4. Cap the attempts and set a delay

Set the number of providers one payment may try and how long to wait before the next try. If a timeout leaves the payment status unclear, check the first attempt before retrying, and follow the network and acquirer guidance on when to retry soft declines. Without a cap, a failing payment can bounce through every provider you have and annoy the customer and the issuer.

In the test, try one eligible backup. If the payment still fails, show the customer a clear message and offer another payment method.

5. Protect against a double charge

A timeout is the dangerous case. The first provider may have approved the payment and simply not answered in time, and a blind retry would charge the card twice. So the retry needs a payment identifier that stays the same across attempts, and you should confirm that the first attempt failed, or that the provider has completed the reversal, before the next authorization starts.

Whatever you use, test this case on its own, because it's the one failure that costs real money.

6. Break the first route on purpose

Run a drill in a test setup. In the sandbox, simulate a failure your rule treats as retryable, such as a timeout or an outage response, and send a few test payments. Confirm that the payment lands on the second provider, that the customer sees one result, and that the record shows both attempts.

Then test a decline reason that should not be retried, separately, and check that it stops.

7. Watch the fallback share

After go-live, track the share of payments that end on a fallback, per provider. If the fallback share rises, check whether provider errors, traffic mix or rule changes caused it, even if every payment still gets approved. Track approval rate, declines and latency by route, so a slow provider shows up before it times out.

Review the numbers weekly for the first month, then monthly.

What breaks and how to catch it

Failover hides trouble by design, which is why the symptoms below are quiet. Read the table as a list of things to alert on.

Problem Symptom Fix
Retrying a hard decline Several attempts on one card, all declined Remove that reason from the retry list
Double charge after a timeout Two captures for one order Keep one payment ID across attempts and check status first
Fallback lacks the currency or method The second attempt fails instantly Check coverage per route before naming a fallback
Failover masks a failing provider Approvals look fine, fallback share climbs Alert on fallback share, not only on approvals
Status codes read differently per provider A real approval gets retried Map each provider's codes to your own before routing
Long waits Customers abandon during the delay Shorten the delay for timeouts and cap total time

The common thread is visibility. If you can see attempts per provider and per reason, you can identify the affected provider and the failure reason before you decide what to change.

Where the platform does these steps

On our platform you configure fallback routes and retry conditions for steps 1 to 4 in the routing and cascading settings. Test which failures trigger a retry and how the limits you set apply. The switch retries soft declines within one payment flow and fails over on timeouts, provider outages and inconsistent status codes.

It also keeps one internal ID per payment attempt through the retries. The dashboard shows approval rates, declines, latency and route efficiency, which is what step 7 needs. The full behavior is on the cascading page.

Questions and answers

Q.01How do you implement failover logic in a payments stack?

Put the decision outside your checkout code. A routing layer reads the failure reason, checks the retry rule, picks the next provider and records every attempt under one payment ID. Your checkout then sends one request and gets one answer, whatever happened behind it.

Q.02How reliable is payment failover in practice?

Failover can recover eligible attempts when a backup supports the card, currency and method. That covers many soft declines, timeouts and provider outages. Measure the recovered share on your own traffic, and stop retrying when the issuer or the network prohibits another attempt.

Q.03Does failover mean I need a second PSP for everything?

Not for everything. Start with the routes that carry the most volume or the most risk, such as your largest country or your subscription renewals, and add backups for the rest as the numbers justify it.

Q.04How do I know failover is working?

Run the drill from step 6 before launch, then watch the fallback share and the per-reason decline counts. If a simulated failure stays on the first route, check the failure code, the retry rule and whether the backup provider can take the payment.

Book a demo

Write the fallback before the outage

Tell us which acquirers you run and which payments matter most, and we'll set the order, the limits and the drill together. Start on the contact page.

One integration, 700+ ready connectors, a 99.95% uptime SLA, SaaS or your own servers.

We walk through routing rules, failover and reports on your setup.