Payment gateway routing for Indian retailers, explained
A retailer's checkout can send each payment to more than one gateway. Routing decides which one, in real time, and that decision changes how many UPI payments actually go through.
The short answer
Payment gateway routing is the rule set that sends each checkout payment to one of several gateways or PSPs in real time, chosen by past success rate, cost, payment method and ticket size. If one route fails, the system retries on another. Better routing lifts UPI success rates without changing the customer's app.
Key takeaways
- Payment gateway routing sends each checkout payment to one of several gateways or PSPs in real time, based on success rate, cost, payment method and ticket size.
- Fallback handles technical failures by trying another route; retry handles customer-side failures like a wrong UPI PIN and should not cascade across gateways.
- Cost-based routing should be a tie-breaker under a success-rate floor, because a failed payment costs more than the fee saved.
- Measure success rate by route, method and bank, and split technical from customer failures, or a rising top-line number can hide a failing route.
- MobiKwik's own Diwali-period filing data points to Tier 2 and 3 shoppers driving most of its location-tagged GMV and user transactions, so routing rules should adapt to regional bank and app mix, not just metro traffic.
Payment gateway routing is the practice of connecting a retailer's checkout to more than one payment gateway or payment service provider (PSP) and deciding, for each transaction, which one should process it. The decision is made by software in the seconds between the customer tapping Pay and the money moving. Done well, routing sends a UPI payment down the path most likely to succeed at an acceptable cost. Done badly, it just adds a middleman between the shopper and the bank.
This explainer covers how the routing decision is made, what rules retailers set, how retries work, and how to measure whether routing actually improved payment success. It does not re-explain what a gateway is, how chargebacks work, what UPI Lite or AutoPay do, or how MDR is calculated — those sit in separate WiseRetail explainers.
Why does a retailer need more than one payment gateway?
Every gateway sits on top of banks and, for UPI, connects to NPCI's switches through partner banks. A single gateway's success rate is not a fixed number. It moves with the payment method (UPI, cards, netbanking, wallets), the issuing bank, the customer's device, the time of day, and the gateway's own technical health. A route that clears nine out of ten card payments on a Tuesday morning can drop sharply during a festive spike or an outage at one partner bank.
That variance is the reason routing exists. If a retailer depends on one gateway, its payment success rate is capped by that gateway's worst hour. With two or three gateways in the checkout, the same transaction can be sent to whichever route is performing best right now. The customer sees one Pay button. Behind it, the retailer holds a small portfolio of routes.
Indian volume makes this matter more than in card-heavy markets. Festive-period data from MobiKwik showed Tier 2 cities and beyond generating about 77% of user transactions and over 78% of location-tagged GMV on Diwali day, according to a company filing reported by media. Small-city shoppers are paying digitally at scale, and their bank and app mix differs from metro users. A single default route tuned on metro traffic will not serve them equally well.
How does success-rate-based routing work in real time?
The routing engine watches the outcome of every transaction and builds a live picture: for this gateway, this payment method and this bank, what share of attempts succeeded in the last few minutes? That picture is usually kept as a rolling success rate rather than a lifetime average, because the whole point is to catch a route that has just turned bad.
When a customer taps Pay, the engine scores the available routes and picks one. Common inputs:
- Payment method and bank: UPI on one bank's app may clear better through gateway A, cards through gateway B.
- Recent success rate: a short window, often minutes, per route.
- Ticket size: a high-value order may be sent to the route with the best record on large transactions, even if it costs more.
- Latency: a route that is technically up but slow can push customers to abandon.
- Device and channel: app, mobile web and desktop behave differently.
The engine then either sends the payment or, on a failure, tries a second route. That second attempt is the fallback.
What is the difference between fallback and retry?
Fallback and retry are often used loosely. Keep them separate.
Fallback is a route-level decision. The first gateway returns a technical failure — timeout, connection error, an error code that says the request never reached the bank. The engine immediately sends the same payment to a second gateway. The customer may see a spinner for a few extra seconds, or nothing at all.
Retry is a customer-level decision. The payment failed for a reason tied to the customer's account — wrong UPI PIN, insufficient balance, a daily limit hit. Sending it to another gateway will fail again. The right move is to ask the customer to try again, ideally with a clear message and an alternative method.
Mixing the two is a common and expensive mistake. Retrying a wrong-PIN failure across three gateways wastes attempts, can trip risk checks, and leaves the customer staring at a screen that seems broken. The routing logic must read the error code before deciding.
What a routing rule set looks like
- Default route: the gateway with the best trailing success rate for that method and bank.
- Cost override: below a set ticket size, prefer the cheaper route if its success rate is within a small margin of the best.
- Fallback chain: if the first route returns a technical error, try the second, then the third.
- Stop rule: on a customer-side error, stop and prompt the customer; do not cascade.
- Circuit breaker: if a route's success rate falls below a floor, take it out of rotation automatically and alert the payments team.
What does routing cost a retailer?
Routing itself is usually a feature of a payment orchestrator — a layer that sits above the gateways — or is offered by some gateways and PSPs. Pricing varies by provider and is often bundled into per-transaction fees, so check the contract rather than assume. The bigger cost question is the trade-off inside the rules: the cheapest route is not always the one that clears the payment.
A failed payment costs more than the fee saved. The order is lost, the customer may not return, and support time is spent. So cost-based routing should be a tie-breaker, not the top rule. Set a success-rate floor and let cost decide only among routes that clear it.
There is also the MDR backdrop. UPI has run without a merchant fee, which kept acceptance cheap; a proposed MDR on select high-value UPI transactions has been deferred repeatedly, according to media reports, which also say the rollout could slip beyond the 2027 assembly elections, with no new date agreed and no official confirmation issued. A flat ₹5 MDR on merchant-to-merchant UPI payments was reportedly cleared by NPCI's UPI and Services Steering Committee, based on media reports, but has not been formally notified. Until the rules are notified, build routing so that cost parameters can be changed without a code release.
How should a retailer measure the impact on success rates?
Measure at the level the routing decision is made, not just at the checkout top line. A rising overall success rate can hide a route that is quietly failing on one bank.
- Success rate by route, method and bank: the core table. Compare before and after routing went live.
- Authorization vs technical failures: split failures caused by the customer's account from failures caused by the pipe. Routing can only fix the second.
- Fallback recovery rate: of payments that failed on the first route and were retried elsewhere, what share eventually succeeded?
- Latency added: extra seconds per fallback attempt, and whether abandonment rose.
- Cost per successful payment: fees divided by completed payments, not by attempts.
Run a clean comparison. Send a slice of traffic through the old single-route setup for a couple of weeks alongside the new rules, then compare like with like. Festive weeks distort everything, so keep a normal week in the sample.
What are the common mistakes?
- Retrying customer-side failures across gateways, which annoys shoppers and can trigger risk flags.
- Routing on lifetime averages, so a route that broke this morning still gets traffic.
- Letting cost rules override success, saving a few paise and losing the order.
- No circuit breaker, so a dead route keeps receiving payments until someone notices manually.
- No reconciliation across gateways, which turns settlement and refund tracking into a monthly scramble.
- Testing changes during a sale week, when traffic mix is unrepresentative.
What it means for Indian retailers
Routing is not a metro-only concern. MobiKwik's own Diwali-period filing data suggests Tier 2 and 3 shoppers account for most of its location-tagged GMV and user transactions, so a checkout that adapts to bank and app mix across regions will outperform one tuned on a single city. Start with two gateways, define the fallback chain, separate technical from customer failures, and put a dashboard on success rate by route. Then tune cost. The order matters: reliability first, price second.
In this story
- MobiKwikCompany · 8 stories
- NPCICompany · 8 stories
PaytmCompany · 7 stories
Pine LabsCompany · 6 stories
Logos are trademarks of their owners and are shown to identify them.
Frequently asked questions
What is payment gateway routing in simple terms?
It is the rule set that decides which payment gateway or PSP processes each checkout payment. Instead of one fixed gateway, the retailer holds several routes and picks the one most likely to succeed at an acceptable cost, moment by moment.
Does routing reduce failed UPI payments?
It can, mainly by catching technical failures. If the first route times out, the payment is sent to a second route before the customer notices. Failures caused by a wrong UPI PIN or low balance will not be fixed by routing.
Is routing the same as retry?
No. Fallback is a route-level switch after a technical error. Retry is asking the customer to try again after a customer-side error. Cascading a wrong-PIN failure across gateways wastes attempts and frustrates shoppers.
How many gateways should a small retailer use?
Two is a reasonable start: a primary route and a fallback. More routes add reconciliation and settlement work. Add a third only when data shows a specific bank or method where the first two underperform.
How do I know routing improved my success rate?
Compare success rate by route, method and bank before and after, with a control slice on the old setup. Track fallback recovery and cost per successful payment, not cost per attempt.
