КМMaselones

Payment cascading and routing: how to work with several providers

· 6 min read · Konstantin Maselones

Читать на русском

When a merchant or payment service adds a second provider, a question comes up at once: which payment goes where? At first the answer is simple — main traffic goes to one provider, and the second is kept in case of an outage. Then countries, payment methods and currencies are added, and manual switching is no longer enough.

Routing is the set of rules by which each payment automatically goes to a suitable provider. Cascading is retrying a payment through another route if the first attempt failed. Both tools help raise the payment success rate and reduce dependence on a single partner. But without common statuses, reconciliation and clear rules they create more problems than they solve.

I have worked with partner banks, payment methods and card acceptance gateways at payment companies and an IPSP, so I have seen routing from the inside. This article covers how to approach it step by step. Check the card scheme rules and your contract terms with your providers.

Routing vs a backup route

A backup route is for outages: the main provider is down, and payments switch to the second. Routing works every day: rules distribute payments between providers even when all of them work normally. Usually a backup comes first and routing grows out of it. I covered how to set up a backup in the article on a payment route with a backup.

When you need it and when it's too early

At launch, one well-chosen provider is usually enough. It is worth thinking about routing when:

  • you accept payments in several countries or currencies and one provider doesn't cover them all;
  • the success rate differs noticeably by country, card type or payment method;
  • one provider's outage stops sales;
  • providers' terms differ across payment types.

If none of these signs apply, a second provider on standby is more useful than a complex rule system.

Routing rules

A payment can be routed by different attributes:

  • payment method: cards, instant payments, local methods;
  • card country or issuing bank by BIN;
  • payment currency and amount;
  • the merchant's product or legal entity;
  • the processing cost at each provider;
  • the current success rate and provider availability.

Start with simple rules that are easy to explain: "cards from this country go through the local acquirer, everything else through the main one". Complex rules with dozens of conditions are hard to test, and mistakes in them only show up as falling sales.

Cascading: retry after failure

A cascade sends a payment to a second provider if the first could not process it. Here it matters to tell causes apart:

  • a technical failure or timeout at the provider — a retry through another route is usually justified;
  • a decline by the buyer's bank — retries must follow card scheme rules: they limit repeat attempts, and breaking them can cost more than the lost payment;
  • an anti-fraud decline — such a payment must not be retried through another route, otherwise anti-fraud loses its point.

Two more risks: a double charge if the first payment actually went through, and a repeat 3-D Secure check that annoys the buyer. So before enabling a cascade you need to know the final status of the first attempt for certain. I described how to work out decline causes in the article on why payments get declined.

What it takes to work

Routing relies on a common foundation:

  • unified payment statuses that every provider's responses are mapped to;
  • one order ID that shows all attempts across all routes;
  • refunds and disputes go through the provider that processed the payment;
  • saved cards for repeat payments: one provider's token usually doesn't work at another, so plan for this in advance;
  • reconciliation for each provider separately and a combined report across all.

Your own orchestrator or a ready-made solution

There are two paths: build routing in-house or use a provider that connects several acquirers and distributes payments itself.

Your own system gives control over rules and data, but requires a team, support and compliance with card data storage requirements if you store card data. A ready-made solution launches faster, but the rules and set of routes depend on the provider, and moving away is harder. The choice depends on volume, the number of countries and how central payments are to your business. Questions worth asking such a provider are in the article on choosing a payment provider.

Partners and rules

Every provider in the route must know your business and approve it: which goods and services, which countries, what volumes. Routing is a tool for reliability and conversion. It must not be used to get around the restrictions or decisions of one of the partners: that breaches contracts and puts every route at risk at once. If a partner has restricted transactions, find out the reason with that partner.

What to track

For each route: success rate, share of technical failures, response time, cost, number of refunds and disputes. For the cascade separately: how many payments were saved by a retry and how many retries ended in a decline. Regularly check that the rules still do what they were written for.

Checklist

  • There is a clear reason to introduce routing, not just a backup.
  • Rules are simple, written down and testable.
  • The cascade triggers only on technical failures or under rules agreed with the provider.
  • Anti-fraud declines are not retried through another route.
  • The final status of the first attempt is known before a retry; double charges are ruled out.
  • Statuses and IDs are unified across providers.
  • Refunds, disputes and saved cards are tied to their route.
  • Reconciliation is done for each provider.
  • Every provider knows your business and has approved it.

If you are adding a second provider or your routing rules have stopped being clear, we can go through the setup on a free 30-minute call.

Konstantin Maselones

Konstantin Maselones
Payments and fintech adviser. In banking since 2006, in payments and fintech since 2015, with digital assets since 2018.