How UPI Payments Work Technically architecture illustration
2026-11-15 8 min journal / how-upi-payments-work-technically

How UPI Payments Work Technically

Length
1866 words
Read
8 min

Unified Payments Interface (UPI) is India's instant payment system: an open protocol, run by the National Payments Corporation of India (NPCI) and regulated by the Reserve Bank of India (RBI), that moves money between bank accounts in real time using a mobile app. This teardown sticks to what public sources document — Wikipedia's technical overview of UPI, RBI materials, and payment-gateway docs from Razorpay and Cashfree — and marks what NPCI has not published about the switch internals.

Key takeaways

  • UPI sits on IMPS. Public sources describe UPI as an open API layer on top of the Immediate Payment Service (IMPS), not a replacement for the bank settlement rails underneath.

  • Four roles touch every payment. A remitter (payer) front-end PSP, a remitter bank, a beneficiary (payee) front-end PSP, and a beneficiary bank. NPCI's switch sits in the middle so any app can reach any bank.

  • Addresses are virtual. Users send or request money with a Virtual Payment Address (VPA / UPI ID), a mobile number, or a QR code — not an IFSC and account number every time.

  • Merchants see three initiation patterns. Intent (hand off to a UPI app), QR, and Collect (ask the customer for a VPA). Razorpay documents that Collect is being deprecated for most merchants from 28 February 2026 in favour of Intent or QR.

  • UPI grew into a platform. UPI 2.0 added mandates and AutoPay; later releases added credit on UPI, UPI Circle delegation, feature-phone 123PAY, and international QR corridors. NPCI also caps large third-party apps at roughly 30% of volume.

Research basis

Primary sources for this article:

  • Wikipedia's Unified Payments Interface page (history, four-pillar model, VPA, PSP/issuer roles, UPI 2.0/3.0 features, market-share rules)

  • Razorpay's UPI payment-method docs (Intent / QR / Collect flows and the Collect deprecation)

  • Cashfree's payment-methods docs (Intent, QR, Collect, Flash UPI, recurring)

  • RBI FAQ material on digital payments where it overlaps UPI

NPCI's product pages often sit behind bot protection from automated fetchers, so this article does not invent switch internals (anycast routing, write-ahead logs, cache topologies) that those pages might describe but that we could not verify here.

How UPI works: a 60-second overview

A customer opens a UPI app (BHIM, a bank app, or a third-party app such as PhonePe or Google Pay) that is linked to one or more bank accounts. To pay a merchant or a friend they either:

  1. enter a VPA such as name@bankpsp,

  2. scan a UPI QR code, or

  3. confirm an Intent hand-off from a merchant checkout.

The payer's Payment Service Provider (PSP) app authenticates the customer (typically with a UPI PIN), then the request travels through NPCI's UPI switch to the payee's PSP and the two banks that actually debit and credit the accounts. Money moves over the IMPS rails; the UPI layer is the addressing, routing, and app protocol on top.

Architecture diagram

Why a direct bank-transfer model breaks

Before UPI, a typical digital P2P payment needed the payee's account number and IFSC, and each bank or wallet lived in its own silo. That model fails three ways at national scale:

  1. Addressing friction. Sharing account numbers and IFSC codes does not work for street vendors, QR stickers, or in-app checkouts.

  2. App lock-in. A closed wallet can only pay other users of the same wallet. UPI's design goal was interoperability across banks and apps.

  3. Push-only limits. Many older rails were good at push payments but weak at pull (collect) and at recurring mandates. UPI was designed as a push-pull model from the start.

UPI's answer is the four-pillar layout: two PSPs (front ends) and two banks (back ends), with NPCI as the common switch so any compliant app can reach any participating bank.

Core insight: a four-pillar push-pull interface

Wikipedia summarises the model NPCI built under RBI guidance: a remitter and beneficiary front-end PSP, plus a remitter and beneficiary back-end bank that settle the money. The "push-pull" part matters:

  • Push — the payer initiates a debit (pay a VPA, scan a QR, confirm Intent).

  • Pull / collect — the payee requests money; the payer approves in their app.

That split is what lets the same interface cover P2P, P2M, bill pay, IPO applications, and AutoPay mandates without each merchant integrating every bank.

Architecture diagram

Participants: PSP, issuer, TPAP

NPCI's public listings distinguish:

Role What it does
PSP (Payment Service Provider) Bank that exposes a UPI app / handle and can initiate transactions on the switch
Issuer Bank that holds the account but may rely on another bank's or a third party's interface
TPAP (Third-Party Application Provider) Non-bank apps (PhonePe, Google Pay, Paytm, …) that ride on partner PSP banks

A single consumer app can link multiple bank accounts. The VPA abstracts which bank sits underneath. Merchants integrating through a gateway (Razorpay, Cashfree, …) usually talk to that gateway's APIs; the gateway and its PSP partners speak UPI to NPCI.

Request paths merchants actually integrate

Payment-gateway docs are the clearest public description of how a checkout becomes a UPI debit. Cashfree and Razorpay both describe three patterns:

1. UPI Intent

The merchant (or gateway) opens the customer's preferred UPI app with a payment payload. The customer approves in that app and returns. This is the path Razorpay now pushes most merchants toward.

2. UPI QR

The merchant shows a QR encoding the payee VPA, amount, and reference. Any UPI app can scan it. Same underlying debit; different UX.

3. UPI Collect (being deprecated for most use cases)

The merchant asks for the customer's VPA and raises a collect request. The customer gets a notification / list entry and approves. Razorpay documents that, under NPCI guidelines, Collect is deprecated from 28 February 2026 for most merchants. Exemptions listed there include certain IPO/securities MCC codes, some iOS flows, mandate execute/modify/revoke, e₹upi vouchers, and specific cross-border PACB cases. New Razorpay merchants are told to use Intent or QR instead.

Architecture diagram

Gateway docs also mention recurring / mandate flows (one-time and standing AutoPay) and in-app SDKs such as Cashfree's Flash UPI. Those still terminate on the same NPCI switch; they change how the request is started, not the four-pillar settlement shape.

Addressing: VPA, mobile number, QR

UPI IDs look like user@psphandle (for example a bank PSP handle). Money can also be requested or sent using the KYC-linked mobile number, and each account can expose a QR. That is why a tea stall can print one static QR while an e-commerce checkout generates a dynamic QR with amount and order id.

For SEBI-registered intermediaries, Razorpay documents a stricter identifier scheme (@validbankpsp handles allocated through the SI portal). That is a regulatory overlay on the same VPA idea, not a second payment network.

Authentication and limits (what is public)

What public sources state clearly:

  • Customers authorise with a UPI PIN (and apps add device biometrics / passcodes, especially for UPI Circle secondary users).

  • RBI and NPCI set per-transaction and use-case limits (for example higher limits for hospitals, education, IPO / Retail Direct; separate limits for UPI 123PAY on feature phones).

  • From August 2025, NPCI added operational caps on some APIs (balance enquiry, list-accounts) and autopay scheduling windows to improve stability and fraud controls.

What public sources do not document in enough detail to assert here: the exact cryptographic handshake between PSPs and the switch, how VPAs are stored and cached inside NPCI, or the switch's internal failover topology. Treat those as undocumented internals.

Failure domains and blast radius

Architecture diagram
Domain What fails What the user sees
Customer device / app Crash, no network, wrong PIN Payment never leaves the phone
TPAP / PSP App or PSP outage "Bank server down" / pending / failed in that app; another app on the same bank may still work
NPCI switch National UPI degradation Broad failures across apps (Wikipedia notes periodic outages)
Single bank Bank CBS / IMPS issues Only accounts at that bank fail; other banks keep clearing
Merchant gateway Callback / status lag Money may have moved while the order stays "pending" until reconciliation

UPI's interoperability is also its containment model: a PhonePe outage does not stop BHIM or a bank app, and a single bank outage does not stop the rest of the network. The shared risk is the NPCI switch itself.

Results and tradeoffs

Public outcomes:

  • Scale. UPI is repeatedly described as the world's largest real-time payment system by volume (hundreds of millions of transactions per day in recent reporting).

  • Interoperability. Any compliant app can pay any participating bank account via VPA/QR/Intent.

  • Product surface. Mandates, credit-on-UPI, Circle, 123PAY, and international QR corridors reuse the same interface.

Tradeoffs visible in public policy:

  • Zero MDR on many P2M flows drove volume but strained economics for PSPs; RBI has discussed MDR options.

  • TPAP market-share caps (30%) try to limit duopoly risk and force capacity planning — NPCI's SOP alerts providers near the cap and can require stopping new user onboarding if it is breached.

  • Collect deprecation reduces a fraud-prone and UX-heavy path but forces merchants to migrate to Intent/QR.

  • Operational API caps (2025) trade some enquiry flexibility for switch stability.

What I would steal for a smaller payments product

  1. Separate addressing from settlement. Let users pay with a handle or QR; keep account numbers off the happy path.

  2. Push and pull in one protocol. Support pay and request-to-pay without a second network.

  3. Multi-homed apps. One front end, many backing banks — the PSP/TPAP split.

  4. Prefer Intent/QR over Collect for new merchant integrations; gateway docs are already forcing that migration.

  5. Design for partial failure. Assume one bank or one app can be down without taking the whole product offline.

FAQ

What is UPI technically?

An NPCI-operated instant payment interface and protocol, regulated by the RBI, that provides an open API on top of IMPS for P2P and P2M transfers using VPAs, mobile numbers, or QR codes.

What is a VPA?

A Virtual Payment Address (UPI ID) such as name@psphandle. It maps to a bank account through the user's PSP so payers do not type IFSC and account number for every payment.

What is the difference between Intent, QR, and Collect?

Intent opens a UPI app with the payment details; QR encodes those details for scanning; Collect asks the payer for a VPA and pushes an approval request. Collect is being deprecated for most Razorpay merchants from 28 February 2026.

Who operates UPI?

NPCI operates the UPI system; RBI regulates it. Banks act as PSPs and issuers; non-bank apps act as TPAPs on top of partner banks.

Does UPI replace IMPS?

No. Public documentation describes UPI as running on top of IMPS. UPI is the addressing and app protocol; IMPS remains the underlying immediate-payment path between banks.

Sources

Image credits

  • Cover: AI-generated illustration

Questions

What is UPI technically?

An NPCI-operated instant payment interface and protocol, regulated by the RBI, that provides an open API on top of IMPS for P2P and P2M transfers using VPAs, mobile numbers, or QR codes.

What is a VPA?

A Virtual Payment Address (UPI ID) such as `name@psphandle`. It maps to a bank account through the user's PSP so payers do not type IFSC and account number for every payment.

What is the difference between Intent, QR, and Collect?

Intent opens a UPI app with the payment details; QR encodes those details for scanning; Collect asks the payer for a VPA and pushes an approval request. Collect is being deprecated for most Razorpay merchants from 28 February 2026.

Who operates UPI?

NPCI operates the UPI system; RBI regulates it. Banks act as PSPs and issuers; non-bank apps act as TPAPs on top of partner banks.

Does UPI replace IMPS?

No. Public documentation describes UPI as running on top of IMPS. UPI is the addressing and app protocol; IMPS remains the underlying immediate-payment path between banks.

Related reading