UPI

On UPI the customer approves the payment, not your server

UPI is the default way to pay in India, and it doesn't behave like a card. There's no card number to store and charge later: the customer approves each one-off payment in their own app. And from just after Diwali 2026, merchant payments over INR 2,000 carry a fee for the first time. This is the UPI material from chapters 34, 31 and 40, with the fee rules checked against NPCI on 10 November 2026.

The Unified Payments Interface (UPI) is India's real-time bank-to-bank payment system, owned and run by the National Payments Corporation of India (NPCI). A customer links a bank account to a UPI app, gets an address in user@bank form (a Virtual Payment Address, or UPI ID), and approves payments in the app with a UPI PIN. Money moves account to account in seconds. In August 2026 UPI processed 2,451 crore transactions, about 24.5 billion, worth ₹29.9 lakh crore (NPCI).

For a merchant, three things matter. You never connect to NPCI yourself: you integrate through a PSP bank or a payment aggregator, and it issues your VPA. The customer approves every one-off payment on their phone, so there's no card-on-file charge. And under NPCI's 2026 framework, merchant payments above ₹2,000 carry a 0.4% merchant discount rate (MDR), starting just after Diwali 2026.

Three Ways to Ask for Money

FlowHow it worksUse it for
IntentYour page or app opens a upi://pay link carrying your VPA and the amount, and the phone hands it to the customer's UPI appMobile web and apps. The default on a phone
QRThe same payload rendered as a QR code: dynamic per order, or static at a counterDesktop checkout and in store
CollectYou send a request to the customer's VPA, and it appears in their UPI app as a prompt to approveWhen you have their VPA and no way to hand off to their app

The payment string is the whole integration on the front end: upi://pay?pa=merchant@psp&am=499.00&cu=INR, where pa is your VPA, am the amount and cu the currency. The common mistake is showing a QR code on a phone, to a customer who would have to scan it with the phone that's displaying it. On mobile, use the intent link.

Whichever flow you use, the redirect back to your site is not proof of payment. Confirm the status from your PSP's server-side callback or status API, and make that handler idempotent, because callbacks can arrive more than once.

AutoPay for Subscriptions

Recurring billing runs on UPI AutoPay. The customer approves a mandate once, and later debits run against it within NPCI's limits. For a subscription business there's a bonus in the 2026 fee rules: NPCI says AutoPay mandates for recurring payments such as utility bills, OTT subscriptions and recurring investments don't carry the prescribed MDR.

The 2026 MDR on Merchant Payments

UPI was free for merchants. NPCI's FAQ of 15 September 2026 sets out what changes:

PaymentMDR
Person to person, any amountFree
Person to merchant, up to ₹2,000Free
Person to merchant, above ₹2,0000.4%
Person to merchant, ₹75,000 and aboveCapped at ₹300
Railways, telecom, insurance, fuel and some other categories, above ₹2,000Flat ₹5
Capital markets: mutual funds, brokers, securities0.02%, capped at ₹300
Small merchants on P2PM, receiving up to ₹1 lakh a monthZero
AutoPay mandatesNo prescribed MDR

NPCI's own worked examples: a ₹3,000 payment costs the merchant ₹12, ₹50,000 costs ₹200, and ₹1,00,000 costs ₹300 rather than ₹400. Payments up to ₹2,000 are more than 95% of UPI merchant volume (NPCI), so for a low-ticket business very little changes. For high-ticket B2C it's still well under the 1.5% to 2.5% that NPCI's FAQ quotes as typical credit card MDR. You can't pass the MDR on to the customer as a surcharge.

The start date moved. The FAQ said 15 October 2026. On 13 October 2026 NPCI's steering committee deferred it to "immediately post Diwali at a date to be notified separately." As of 10 November 2026 we hadn't found the notified date, so check NPCI before you model it. Your PSP's contract decides what you're actually billed; ask how it passes the MDR through.

Limits

Most UPI payments are capped at ₹1 lakh per transaction, and NPCI describes bank and NPCI caps of ₹1 lakh to ₹5 lakh depending on the transaction category. Keep the cap per category in config rather than in code, and route anything above it to NEFT or RTGS. The excerpt from chapter 34 below covers that fallback.

Who runs the rail, how VPAs work, and the INR 1 lakh guard in code. From chapter 34.

UPI: India's Rail, Run by NPCI

UPI is owned and operated by the National Payments Corporation of India (NPCI), which writes the rules and runs the switch every bank connects to. You don't connect to NPCI. A merchant integrates through a PSP bank, or through an aggregator that sits on one, and consumer apps such as Google Pay are third-party application providers riding a PSP bank's connection (NPCI). Chapter 31 covers the QR and intent-link side that most Indian checkouts use, and Chapter 40 covers the wallet apps. Here we're looking at the rail underneath.

What surprises integrators: every one-off UPI payment is approved by the payer on their phone with a UPI PIN, including the ones you initiate. A collect request lands in the customer's app as a prompt, not as a debit, and the payment only exists once they approve it. There's no stored-credential charge in the card sense. Recurring billing goes through UPI AutoPay, where the customer approves a mandate once and later debits run against it within NPCI's limits (NPCI; Razorpay). The amount cap is the other surprise, and the callout below covers where B2B payments go when they hit it.

The processor below shows the addressing. A Virtual Payment Address in user@bank form stands in for the account number, so the customer never types bank details and you never store them. The format check and the INR 1 lakh guard run before anything touches NPCI, because a rejection there costs a round trip and a confused customer.

# 4. Country-Specific Instant Payment Rails
class UPIProcessor:
    """
    India UPI: 20.7B transactions in October 2025 (NPCI); free for P2P and for
    merchant payments up to INR 2,000; settles in seconds
    """

    def send_upi_payment(self, recipient_vpa: str, amount: Decimal):
        """
        Virtual Payment Address (VPA) format: user@bank
        - Eliminates account number exposure
        - Zero transaction fees
        - ₹1 lakh (€1,100) limit
        - Settlement in seconds
        """

        if not re.match(r'^[\w.]+@[\w]+$', recipient_vpa):
            raise ValueError(f"Invalid VPA format: {recipient_vpa}")

        if amount > 100_000:  # ₹1 lakh
            raise ValueError("UPI limit: ₹1,00,000 per transaction")

        payment = {
            'vpa': recipient_vpa,
            'amount': amount,
            'currency': 'INR',
            'note': 'Payment via UPI',
        }

        result = self.submit_to_npci_upi(payment)

        return {
            'transaction_id': result['txn_id'],
            'status': 'success',
            'settlement_time': '< 5 seconds',
            'fee': 0,  # Zero fees
        }

UPI's low fees and settlement in seconds make it irresistible. Merchant payments above INR 2,000 pick up a 0.4% MDR once it starts after Diwali 2026 (NPCI), and the transaction limit is just INR 1 lakh (~$1,200). For B2B or high-value transactions in India, you need NEFT (no limit, 30-minute batches) or RTGS (minimum INR 2 lakh, real-time). Build your routing logic to automatically fall back from UPI to NEFT/RTGS when amounts exceed the UPI cap.

The integration route, and the one mobile mistake to avoid. From chapter 31.

UPI (India)

UPI is the clear winner in India: it carries 85% of the country's digital payments by volume (RBI), and the money arrives in seconds. Merchant payments up to INR 2,000 are free by law. In September 2026 the government and NPCI notified a 0.4% fee on larger merchant payments, with the start deferred to after Diwali (NPCI). You integrate through an NPCI-certified PSP (Razorpay, PayU, Paytm). One thing to get right: on mobile, use intent links that open the customer's installed UPI app directly instead of showing a QR code they can't scan with the phone that's displaying it.

How UPI differs from Alipay, WeChat Pay and the Southeast Asian wallets. From chapter 40.

What Differs Per Market

Start with who's allowed to sign up, because the contract decides which flows you can offer. WeChat Pay's domestic program wants a Chinese business license, so foreign merchants usually arrive through an acquirer or PSP that has already done the paperwork. Alipay registers foreign merchants through its global program. GrabPay makes you register separately in each of its countries, and LINE Pay is country-specific too. UPI you don't join at all: you go through a payment service provider, which is the psp in the code, and it issues your VPA.

Then the mechanics. Alipay wants the amount as a decimal string with two places and signs requests with RSA2. WeChat Pay wants an integer in the smallest unit and APIv3 signatures, and it encrypts what it sends back. UPI's merchant side, as the code builds it, is a plain string; the customer's UPI app and bank do the authorizing. Each hands the customer a different thing to act on: a QR URL, a code_url, a prepay_id wrapped in a signed payment string, or an intent link that opens whichever UPI app is installed.

The customer's side differs most. In China the customer is already inside Alipay or WeChat and expects to stay there, so the payment surface is the app's own sheet. In India the customer has a UPI app, possibly several, and expects your page to hand off to it and come back. In Southeast Asia the customer scans a national QR at the counter, and which wallet they used is the scheme's problem, not yours. Design the checkout per market, not per wallet.

Questions

What is the Unified Payments Interface?

UPI is India's real-time bank-to-bank payment system, owned and run by NPCI. Customers pay from a UPI app using a Virtual Payment Address in user@bank form and approve each payment with a UPI PIN. Money moves between accounts in seconds.

Do merchants pay fees on UPI?

Under NPCI's 2026 framework, person-to-merchant payments above ₹2,000 carry a 0.4% MDR, capped at ₹300 from ₹75,000. Payments up to ₹2,000, person-to-person transfers, small P2PM merchants and AutoPay mandates carry no prescribed MDR. The start was deferred to just after Diwali 2026, at a date NPCI said it would notify separately.

What is the difference between UPI intent, QR and collect?

An intent link opens the customer's UPI app on the same phone with your VPA and the amount filled in. A QR code carries the same payload for a customer to scan from another screen or at a counter. A collect request is sent to the customer's VPA and appears in their app as a prompt to approve.

What is the UPI transaction limit?

Most UPI payments are capped at ₹1 lakh per transaction, and NPCI describes caps of ₹1 lakh to ₹5 lakh depending on the transaction category. Above the cap, route the payment to NEFT or RTGS.

What the book adds

What chapters 34, 40 and 31 add

  • A UPI client with dynamic QR, intent links and collect requests
  • AutoPay mandates and UPI Lite in code
  • Falling back to NEFT and RTGS above the UPI cap
  • One QR dispatcher for UPI, Alipay, WeChat Pay and national QR
  • Testing on real devices, and monitoring conversion by app

30-day money-back · Instant PDF and EPUB

All 42 chapters