Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

Demystifying UPI: The Architecture Behind India's Instant Payment System

CodersAura 3 min read

When you scan a QR code, type your UPI PIN, and see money move instantly, you're witnessing a complex system design in action. This article breaks down the architecture of the Unified Payments Interface (UPI) from QR scan to bank settlement.

UPI Is Not an App

A common misconception is that UPI is a mobile app. In reality, it's a protocol layer that sits between banks and third-party payment apps like Google Pay, PhonePe, and Paytm. It standardizes how payment requests are formatted and routed.

The WhatsApp Analogy

Think of UPI as a messaging system for banks. Just as WhatsApp delivers messages between users, UPI delivers payment instructions between financial institutions. The 'message' in this case is a payment request that includes sender, receiver, amount, and a unique identifier called a VPA (Virtual Payment Address).

Key Actors and Their Roles

  • PSP (Payment Service Provider): The app you use (e.g., Google Pay). It handles user interface and initiates transactions.
  • NPCI (National Payments Corporation of India): Operates the UPI switch that routes messages between banks.
  • Issuer Bank: The sender's bank that debits the account.
  • Acquirer Bank: The receiver's bank that credits the account.
  • UPI ID / VPA: A unique address like user@bank that identifies a user's bank account.

Onboarding Process

Before using UPI, you must link your bank account to a VPA. Your PSP sends a registration request to NPCI, which validates with your bank and creates a mapping between your phone number, VPA, and bank account.

How QR Codes Work

A merchant's QR code encodes static or dynamic data: the merchant's VPA, amount (if fixed), and a transaction reference. When you scan it, your PSP decodes this and prepares a payment request.

The Payment Flow

  1. Payment Request: Your PSP sends a transaction request to NPCI with your VPA, the merchant's VPA, amount, and your device's security token.
  2. Authentication & Risk Check: NPCI validates the VPA format, checks for duplicate transactions, and performs risk scoring. It then forwards the request to your bank.
  3. Bank Processing: Your bank verifies your UPI PIN (entered on your device but encrypted and sent via the PSP), checks sufficient balance, and debits your account. It sends a success response back through NPCI.
  4. Settlement: NPCI logs the transaction and forwards the credit instruction to the merchant's bank. Settlement between banks happens later through a netting process managed by NPCI.

The entire flow typically completes in under 2 seconds.

Security Measures

  • Two-factor authentication: device binding + UPI PIN.
  • Tokenization: actual card/account numbers are never transmitted.
  • Transaction limits and velocity checks.

By abstracting bank details behind a simple VPA and standardizing messaging, UPI has revolutionized digital payments in India, processing billions of transactions monthly.

React