E-CommerceE-Commerce

UPI Payment Gateway Integration for E-Commerce: A Founder's Guide

Published September 11, 2026
Harsh Vasistha
AuthorHarsh VasisthaPublished September 11, 2026

For an Indian online store, launching without UPI isn't a minor gap, it looks broken to most customers. UPI is now the default way Indians pay online, not one option among several. This guide covers what actually goes into integrating it properly, realistic 2026 costs, and one detail about "free" UPI that most guides gloss over.

This article assumes you already know the platform and cost basics, covered in our complete guide to e-commerce website development.

Why UPI Isn't Optional

UPI now processes billions of transactions every month in India, dwarfing every other digital payment method combined. For an Indian customer, seeing a checkout without a UPI option doesn't read as "this store has other ways to pay", it reads as incomplete, or even untrustworthy. Whatever else your checkout supports, UPI needs to be there, front and center, not buried as a secondary option.

You Don't Integrate UPI Directly

A common misconception: businesses don't connect directly to NPCI's UPI infrastructure. Instead, RBI's payment aggregator licensing means a shortlist of licensed providers, Razorpay, Cashfree, PayU, PhonePe Payment Gateway, and a few others, sit between your website and UPI's rails, along with cards, net banking, and wallets, all behind one API and one settlement account.

This is actually good news for a business building or rebuilding its checkout: you're choosing an aggregator, not navigating NPCI paperwork directly. For most stores, the honest answer is that the major aggregators are largely interchangeable on core features, and the real decision comes down to pricing, settlement speed, and support quality when something breaks.

The "Zero MDR" Detail Most Guides Get Wrong

RBI mandates a "Zero MDR" policy on standard UPI and RuPay debit transactions, meaning banks aren't allowed to charge a merchant discount rate on the transfer itself. Some guides read this as "UPI is free to accept." It isn't, in practice.

Payment gateways still charge their own platform or technology fee, typically around 2 percent, for the infrastructure that makes the payment actually work: instant routing, the checkout interface, webhooks, and fraud protection. That fee isn't the regulated bank-to-bank MDR, it's the gateway's own charge for the service layer sitting on top. Worth knowing this distinction clearly, since a quote or gateway page that implies UPI processing is entirely free is technically misleading, even if the underlying bank transfer genuinely is.

One related detail worth flagging directly: UPI payments made via a RuPay credit card are not the same as standard bank-to-bank UPI, and typically do carry a real MDR similar to a card transaction, since credit is actually being extended. Don't assume every "UPI" checkout option is fee-free just because it says UPI.

Comparing the Major Gateways

Razorpay: a standard 2 percent domestic transaction fee plus GST, no setup or annual fees on the standard plan. Well-suited to SaaS and subscription businesses, with strong integration speed and developer tooling.

Cashfree: a lower headline rate, often around 1.75 to 1.95 percent, but with an annual maintenance fee on some plans that adds a fixed yearly cost regardless of volume. Strong fit for marketplaces and payout-heavy businesses.

PayU: doesn't publish a fixed rate card the way Razorpay does, pricing is generally negotiated, which can work in your favor at higher volumes but makes upfront comparison harder. Strong option for businesses with international customers or needing EMI/BNPL support.

The realistic takeaway: at typical small-business volume, the headline percentage difference between these matters less than transaction success rates and how responsive support is when a payment issue happens. A gateway that's 0.1 percent cheaper but fails more transactions costs you more in lost sales than it saves in fees.

What Integration Actually Costs

Basic checkout integration (standard UPI, cards, net banking via a gateway's SDK) Realistic range: ₹30,000 – ₹80,000

Production-grade integration (webhook handling, reconciliation, refund flows, proper error handling) Realistic range: ₹1,00,000 – ₹3,00,000

Enterprise-grade, direct API integration (custom flows, multiple gateways with routing for redundancy) Realistic range: ₹3,00,000 – ₹8,00,000+

For most small and mid-sized stores, a production-grade single-gateway integration is the right target, basic checkout integration often skips proper reconciliation and refund handling, which becomes a real operational problem the first time a payment needs investigating.

The Integration Process, Step by Step

  1. Choose a provider: Razorpay, Cashfree, or PayU are the most common starting points for Indian businesses
  2. Complete merchant KYC: this is required to get live API keys, and can take a few days depending on documentation readiness
  3. Integrate the payment flow: using the provider's SDK or API, covering the actual checkout experience
  4. Test thoroughly in sandbox mode: before going live, including failure cases, not just the happy path
  5. Go live once the gateway verifies your business and KYC is complete

One architectural tip worth building in from day one, even if you only use one gateway now: keep your payment logic behind an internal interface rather than calling the gateway's API directly throughout your codebase. Adding a second gateway later, for redundancy or better rates at scale, becomes a contained change instead of a full rewrite.

Frequently Asked Questions

Is UPI actually free for merchants to accept?

The underlying bank-to-bank transfer is fee-free under RBI's Zero MDR mandate, but payment gateways still charge their own platform fee, typically around 2 percent, for the infrastructure enabling the transaction. It's not entirely free in practice.

Which payment gateway is best for a small Indian e-commerce store?

Razorpay is a common starting point for its clean API and fast settlement. Cashfree often has a lower headline rate but may include annual fees. The better choice depends more on your specific volume and support needs than a single universal answer.

How much does UPI integration cost for a small business?

A basic integration typically costs ₹30,000 to ₹80,000. A production-grade integration with proper reconciliation and refund handling runs ₹1,00,000 to ₹3,00,000.

Do I need to integrate with NPCI directly?

No. Licensed payment aggregators like Razorpay, Cashfree, and PayU handle the NPCI connection for you, behind a single API and settlement account. This is the standard, sensible approach for virtually all businesses.

Should I use more than one payment gateway?

Not on day one. As you scale, running two gateways with routing adds redundancy and negotiating leverage, but it's added complexity worth deferring until you actually have the volume to justify it. --- *Want a production-grade checkout that actually handles refunds and edge cases correctly? [Get a free, itemized quote](https://risedigitalindia.com/quote).*