Behind the screen

Payments

Taking money online means moving it from a customer's card, bank account or UPI app into a business bank account, safely and with a record of every step. A payment gateway does the heavy lifting: it shows the checkout, talks to the banks and card networks, and tells your app whether the payment went through.

Around the gateway sit the other pieces on this page: the ways people pay (cards, UPI, netbanking, wallets and subscriptions), the fee taken from each payment, the server-side checks that stop you shipping an order nobody paid for, and the rules and paperwork (KYC, PCI DSS) that decide who may accept payments at all.

13 terms · 1 comparison · prices checked September 2026

13 terms, click any to open

Gateways

Payment gateway

Concept
The service that sits between your checkout and the banks: it collects a customer's card, UPI or bank details, gets the payment approved, and pays the money out to you.

When a customer pays, the gateway's checkout (a hosted page, a pop-up or a mobile SDK) collects the payment details so they never touch your server. It routes the request through the card network or UPI to the customer's bank, returns success or failure within seconds, and later settles the money, minus its fee, into your bank account, usually one or two working days later (T+1 or T+2).

In India the RBI licenses payment aggregators, companies such as Razorpay, Cashfree and PayU that collect money on a merchant's behalf and must verify every merchant they sign up. A pure payment gateway only provides the technology while a bank handles the funds, but in everyday speech both are called gateways. Most add extras on top: payment links, subscriptions, invoices, split payments for marketplaces and payouts.

Also called: payment aggregator, payment processor, PG, checkout

Open Payment gateway as a page

Razorpay

ServicePer transaction
An Indian payment gateway that lets a business accept UPI, cards, netbanking, wallets and EMI through one checkout, with the money settled to an Indian bank account.

The usual flow has three steps. Your server creates an order through the Orders API, with the amount in paise; the website or app opens Razorpay Checkout with that order id; after the customer pays, Checkout returns a payment id and a signature, which your server checks with its secret key before marking the order paid. Webhooks such as payment.captured confirm the result even if the customer closes the page.

Beyond the gateway there are Payment Links and Payment Pages (no code needed), Subscriptions, Smart Collect virtual accounts, Route for splitting money between vendors, Instant Settlements, and RazorpayX for business banking and payouts. SDKs cover the web, Android, iOS, Flutter and React Native, and plugins exist for Shopify and WooCommerce. Money normally settles two working days after capture (T+2).

Test mode works as soon as you sign up, with test keys and test cards. Live payments need KYC (PAN, bank account and business details) and a website or app that shows terms, privacy, refund and contact pages, which Razorpay reviews before activating the account.

Pros

  • One integration covers UPI, cards, netbanking, wallets, EMI and Pay Later
  • No setup fee or annual fee on the standard plan
  • Clear docs, test mode from day one, and SDKs for most platforms
  • Payment links, subscriptions and split payments built in

Cons

  • About 2% plus GST on most payments, UPI included, which adds up at volume
  • Amex, corporate cards, EMI and international cards cost about 3%
  • Live payments wait on KYC and a review of your website

Pick it when

  • You sell to customers in India and want UPI and cards in one checkout
  • You need subscriptions, payment links or split payouts without another vendor
  • A small team wants something quick to integrate and well documented

Skip it when

  • Most buyers are abroad and expect PayPal or their own local payment methods
  • A small shop only needs a UPI QR code from its bank, which avoids the gateway fee

What it costs · Per transaction

About 2% plus 18% GST per payment for UPI, domestic cards, netbanking and wallets; about 3% plus GST for Amex, corporate cards, EMI and international cards. No setup or annual fee.

Razorpay pricing (opens in a new tab)Approximate, checked September 2026.

Also called: Razorpay Checkout, Razorpay Payment Links, RazorpayX

Open Razorpay as a pageOfficial site (opens in a new tab)

Stripe

ServicePer transaction
A global payments platform known for its developer-friendly APIs, used to accept cards and local payment methods and to run subscriptions in dozens of countries.

Stripe gives developers building blocks: Checkout (a hosted payment page), Elements (card and wallet fields you embed in your own page), Payment Links (no code), Billing for subscriptions and invoices, Connect for marketplaces that pay out to sellers, Radar for fraud screening and Tax for sales tax and VAT. A PaymentIntent object tracks each payment from creation to success, and webhooks report every change.

The API is built around developers: versioned endpoints, a full test mode with test cards, idempotency keys that make retries safe, and a log of every request in the dashboard. Standard US pricing is 2.9% plus 30 cents per successful card payment, with extra fees for international cards and currency conversion.

In India, Stripe has been invite-only since May 2024 and focuses on Indian businesses that sell abroad, so most businesses selling within India use a local gateway instead. It added UPI as a payment method in 2026, for customers paying in rupees.

Pros

  • Clean, well-documented APIs and SDKs, with a complete test mode
  • Subscriptions, invoices, marketplaces and tax tools in one account
  • Accepts cards and many local payment methods around the world
  • Card data goes straight to Stripe, which keeps your servers out of most PCI DSS scope

Cons

  • New Indian businesses need an invitation to sign up
  • Fees for international cards and currency conversion stack on the base rate
  • The range of products takes time to learn

Pick it when

  • Your company is based in the US, UK, EU or another country Stripe fully supports
  • You sell software subscriptions to customers in many countries
  • You run a marketplace that pays sellers through Connect

Skip it when

  • You are an Indian business selling mainly in India, where sign-up is invite-only
  • Customers mostly pay by UPI or netbanking, which Indian gateways cover more fully

What it costs · Per transaction

US: 2.9% plus 30 cents per successful card payment, plus 1.5% for international cards and 1% for currency conversion. India (invite only): about 2% on Indian cards and 3% on international cards.

Stripe pricing (opens in a new tab)Approximate, checked September 2026.

Also called: Stripe Checkout, Stripe Elements, Stripe Billing, Stripe Connect

Open Stripe as a pageOfficial site (opens in a new tab)

PayPal

ServicePer transaction
A global digital wallet and checkout that lets buyers pay with a PayPal account or a card, widely used for paying businesses in other countries.

Buyers log in to PayPal (or check out as a guest with a card), approve the payment, and the seller never sees their card or bank details. PayPal also offers invoicing, payment links, subscriptions, Pay Later instalments in some countries and Venmo in the US. Braintree, which PayPal owns, is its developer-focused gateway for larger merchants.

Since April 2021, PayPal in India has handled only international payments: an Indian freelancer, exporter or studio can receive money from clients abroad, but Indian customers cannot pay an Indian business through it. Each payment needs an RBI purpose code (such as export of software services), the money is withdrawn to an Indian bank account in rupees, and PayPal provides a FIRA as proof of the foreign payment.

Buyer protection lets customers open disputes, and PayPal charges sellers a dispute fee in some cases. Accounts that see unusual activity can have money held for a while, so keeping invoices and delivery records makes disputes easier to answer.

Pros

  • Buyers in many countries already have accounts and recognise the button
  • Indian sellers can receive money from abroad without a foreign company
  • Quick to start with buttons, payment links or invoices

Cons

  • In India it cannot take domestic payments at all
  • About 4.4% plus a fixed fee, and around 3% more to convert to rupees
  • Disputes and account holds can freeze money for a while

Pick it when

  • Freelancers and studios billing clients in the US, UK or Europe
  • Buyers abroad expect a PayPal button at checkout

Skip it when

  • Your customers are in India, where a local gateway with UPI fits
  • Margins are thin and the combined fee and conversion cost would eat them

What it costs · Per transaction

Indian accounts pay about 4.4% plus a fixed fee on each payment received from abroad (0.30 USD on dollar payments), and converting to rupees costs about 3% above the base exchange rate.

PayPal pricing (opens in a new tab)Approximate, checked September 2026.

Also called: PayPal Checkout, PayPal Business, Braintree

Open PayPal as a pageOfficial site (opens in a new tab)

Cashfree Payments

ServicePer transaction
An Indian payment gateway that accepts UPI, cards, netbanking and wallets, and is also known for bulk payouts to bank accounts and UPI IDs.

Cashfree works much like other Indian gateways: your server creates an order, the customer pays through Cashfree's hosted checkout or SDK, and your server confirms the result by fetching the order status and checking signed webhooks. It supports UPI intent, collect, QR code and payment-link flows, cards, netbanking, wallets, EMI and Pay Later, plus payment links and forms that need no code.

Its Payouts product sends money out in bulk, to vendors, sellers, delivery partners or customers owed a refund, through an API or a spreadsheet upload, which suits marketplaces and gig platforms. Easy Split divides each payment between vendors automatically, and a verification suite checks bank accounts, UPI IDs, PAN and GSTIN before money moves. Standard settlement is two working days after the payment (T+2).

Pros

  • Standard rate of 1.95% plus GST, with no setup or annual fee
  • Strong payout and split-payment tools for marketplaces
  • Built-in checks for bank accounts, UPI IDs, PAN and GSTIN
  • Many UPI flows, including QR codes, intent and payment links

Cons

  • International cards cost about 2.99% plus GST
  • EMI, Pay Later and premium cards are priced above the standard rate
  • Live payments wait on KYC approval, as with every Indian gateway

Pick it when

  • Marketplaces and platforms that pay many vendors or partners
  • Indian businesses that want UPI and cards at a slightly lower headline rate
  • You need to verify bank accounts or PAN before paying people

Skip it when

  • Most customers are abroad and expect PayPal or Stripe

What it costs · Per transaction

About 1.95% plus 18% GST per payment for UPI, domestic cards, netbanking and wallets; about 2.99% plus GST for international Visa and Mastercard. No setup or annual fee.

Cashfree Payments pricing (opens in a new tab)Approximate, checked September 2026.

Also called: Cashfree, Cashfree PG, Cashfree Payouts

Open Cashfree Payments as a pageOfficial site (opens in a new tab)

Ways to pay

UPI

Protocol
India's real-time payment system, which moves money straight from one bank account to another in seconds using a phone app, a UPI ID or a QR code.

UPI was built by NPCI (National Payments Corporation of India) and launched in 2016. A bank account is linked to a UPI ID such as name@bank, and apps such as Google Pay, PhonePe, Paytm and BHIM, or a bank's own app, let the customer approve a payment with a UPI PIN. Money moves between banks instantly, at any hour, and a single payment is usually capped at ₹1 lakh, with higher limits for some categories.

Online, a gateway offers UPI in a few ways: an intent flow that opens the customer's UPI app on a phone, a QR code to scan from a desktop screen, or a collect request sent to a UPI ID. UPI Autopay handles subscriptions: the customer approves a mandate once, and later debits of up to ₹15,000 go through automatically after an advance notice.

UPI carried zero MDR (no fee for merchants) from January 2020. Under an NPCI framework that applies from 15 October 2026, most merchants pay 0.4% on payments above ₹2,000, capped at ₹300 a payment, while payments up to ₹2,000, person-to-person transfers and small merchants receiving up to ₹1 lakh a month through QR codes stay free. Some sectors, such as fuel and railways, pay a flat ₹5 instead, and the charge may not be passed on to customers. Gateways add their own platform fee on top, usually about 2%.

Pros

  • Instant bank-to-bank payments, around the clock
  • Cheap for merchants: no MDR up to ₹2,000 and a capped rate above
  • No card number to type, just a PIN in an app the customer already has
  • Covers one-off payments, QR codes and subscriptions (Autopay)
  • Low risk of unrecognised payments, since customers approve each one in their app

Cons

  • Built for rupee payments from Indian bank accounts
  • Some payments sit in a pending state before they succeed or reverse
  • Gateways still charge their own fee, often about 2%

Pick it when

  • Selling to customers in India, online or at a counter
  • Low-value payments, where card fees would bite
  • Subscriptions for Indian customers, through UPI Autopay

Skip it when

  • Customers are outside India or pay in other currencies

Also called: Unified Payments Interface, BHIM UPI, UPI ID, VPA, UPI Autopay, UPI QR

Open UPI as a pageOfficial site (opens in a new tab)

Subscriptions and recurring payments

Concept
Charging a customer automatically every week, month or year after they agree once, as with software plans, memberships and streaming services.

The customer signs up and authorises future charges; the provider stores a mandate or a saved payment method and charges it on schedule. A billing system (Stripe Billing, Razorpay Subscriptions, Cashfree Subscriptions or Chargebee) tracks plans, trials, upgrades, proration and invoices, and uses webhooks to tell your app when a renewal succeeds or fails, so access can be switched on or off.

India adds rules. Under RBI's e-mandate framework, the customer registers a mandate once with an extra authentication step; each later debit up to ₹15,000 (₹1 lakh for insurance, mutual funds and credit card bills) then runs automatically, after a notice at least 24 hours before, and the customer can cancel at any time. Cards and UPI Autopay follow these rules; eNACH mandates debit bank accounts directly.

Renewals fail for ordinary reasons (expired cards, low balances), so billing tools retry on a schedule and send reminders, a process called dunning. Apps that sell digital content inside an Android or iOS app usually have to use Google Play or App Store billing instead, under the stores' rules.

Also called: recurring payments, recurring billing, e-mandate, autopay, dunning

Open Subscriptions and recurring payments as a page

How it works

Transaction fees (MDR)

Concept
The fee a business pays on each payment it accepts, usually a percentage of the amount, taken out before the money reaches its bank account.

MDR (merchant discount rate) is split between the parties that move the money: the customer's bank (the issuer), the merchant's bank (the acquirer), the card network or UPI app, and the gateway. Gateways usually quote one all-in figure, sometimes called TDR (transaction discount rate) or a platform fee, and deduct it from each payment before settlement. In India, 18% GST is charged on the fee, not on the payment.

Rates depend on the method. RBI caps debit card MDR at 0.4% (at most ₹200 a payment) for merchants with turnover up to ₹20 lakh a year, and 0.9% (at most ₹1,000) above that. Credit card rates are set commercially and cost more, with premium, corporate and international cards the most expensive. UPI was free for merchants from 2020; from 15 October 2026, most payments above ₹2,000 carry 0.4%, capped at ₹300. Indian gateways typically charge about 2% on most methods and about 3% on premium and international cards.

Refunds usually do not give back the original fee, and chargebacks can add a fee of their own, so a refunded sale still costs money. The UPI framework also forbids passing MDR on to customers as a surcharge.

Also called: merchant discount rate, TDR, transaction discount rate, interchange, processing fee

Open Transaction fees (MDR) as a page

Server-side payment verification

Pattern
Confirming on your own server that a payment really succeeded, for the right amount, before you ship an order or unlock a feature.

The browser cannot be trusted: a customer, or an attacker, can fake a 'payment successful' message or edit the amount in the page. So after checkout, the server checks the gateway's proof. Razorpay returns a signature, an HMAC SHA256 of the order id and payment id made with your secret key, which the server recomputes and compares; other gateways let the server fetch the payment from their API and compare its status, amount and currency with the order it created.

Webhooks are the second half. The gateway calls your server when a payment is captured, fails or is refunded, so the order is updated even if the customer closed the tab. Each webhook carries a signature header (X-Razorpay-Signature, Stripe-Signature) that must be checked against the raw request body with the webhook secret, and the handler should be idempotent, because the same event can arrive more than once.

Also called: signature verification, payment confirmation, webhook verification

Open Server-side payment verification as a page

Idempotency

Pattern
Designing an operation so that doing it twice has the same effect as doing it once, so a retry can never charge a customer or ship an order twice.

Networks fail at awkward moments: a request times out, the app retries, and the first attempt had actually worked. With an idempotency key, the client sends a unique id with the request (Stripe uses an Idempotency-Key header); the server stores the result against that key and returns the same result for any repeat instead of acting again.

The same idea protects webhook handlers, since gateways retry deliveries and may send an event more than once: record each event or payment id, skip ones already processed, and back that with a unique constraint in the database so two copies arriving together cannot both win. In HTTP, GET, PUT and DELETE are meant to be idempotent; POST is not, unless you make it so.

Also called: idempotency key, idempotent, deduplication, exactly-once

Open Idempotency as a page

Refunds and chargebacks

Concept
A refund is money a business sends back by choice; a chargeback is money the customer's bank takes back after the customer disputes a payment.

Refunds go back to the original payment method through the gateway's dashboard or API, in full or in part. Card and UPI refunds usually take several working days to reach the customer, which is worth stating on the refund page. Most gateways do not charge for a refund but keep the fee from the original payment, and some offer instant refunds for an extra fee.

A chargeback starts with the customer's bank: the customer reports fraud, a missing delivery or a double charge, the bank pulls the money back, and the gateway asks the merchant for evidence such as invoices, delivery proof or logs. Missing the response deadline usually means losing automatically, many gateways add a chargeback fee, and too many chargebacks can get an account restricted.

Also called: chargeback, dispute, reversal, partial refund

Open Refunds and chargebacks as a page

Rules and paperwork

KYC

Concept
The identity and business checks a payment company must run before it lets you accept money, so it knows who is behind every account.

In India, RBI rules require payment aggregators to verify each merchant before live payments start. Expect to share a PAN, ID and address proof for the owner or signatory, a bank account in the business's name (or the owner's name for a sole proprietor), and business proof such as a GST certificate, a shop and establishment licence, a partnership deed or a certificate of incorporation, depending on the type of business.

Gateways also review what you sell and where: prohibited categories are refused, and the website or app usually needs visible terms, privacy, refund and contact pages, with prices that match what the customer pays. Test mode needs none of this, so integration can start on day one while the paperwork catches up.

Elsewhere the idea is the same under anti-money-laundering rules, and businesses that pay money out to their own users, such as marketplaces, may have to verify those users too.

Also called: Know Your Customer, merchant onboarding, video KYC, business verification

Open KYC as a page

PCI DSS

Concept
The security standard set by the card networks for anyone who stores, processes or sends card numbers, and the reason most apps never touch card details directly.

PCI DSS (Payment Card Industry Data Security Standard) is maintained by the PCI Security Standards Council, founded by Visa, Mastercard, American Express, Discover and JCB. It covers network security, encryption, access control, logging and regular testing. Large merchants and payment companies are assessed by auditors every year, while smaller merchants fill in a self-assessment questionnaire (SAQ).

The simplest way to comply is never to see card numbers. With a hosted checkout, a redirect, or card fields that load from the gateway inside an iframe (Stripe Elements, Razorpay Checkout), card data goes straight to the gateway, and the site usually qualifies for the shortest questionnaire, SAQ A. A home-made card form that posts to your own server pulls that whole server into scope.

India goes further: since October 2022, RBI rules have barred merchants from storing card numbers at all. Saved cards work through network tokens, stand-in numbers issued by the card networks that only work for that merchant.

Also called: PCI, PCI compliance, SAQ A, card data security, tokenisation

Open PCI DSS as a page

Side by side

Differences

How the options in this area compare on the questions that usually decide the choice.

Razorpay vs Stripe vs PayPal vs Cashfree

Open as a page: Razorpay vs Stripe vs PayPal vs Cashfree

Four gateways that often come up together. Two are built for selling inside India, one is a global platform with limited sign-up in India, and one is mainly used for payments that cross borders.

CompareRazorpayStripePayPalCashfree
What it isIndian gateway with banking extrasGlobal payments platform with rich APIsGlobal wallet and checkoutIndian gateway known for payouts
Best forIndian businesses selling in IndiaBusinesses based outside IndiaGetting paid by clients abroadIndian marketplaces paying many vendors
Signing up from IndiaOpen, with KYCInvite only since May 2024Open, for international payments onlyOpen, with KYC
Domestic fee in IndiaAbout 2% + GST on most methodsAbout 2% on Indian cardsNo domestic payments in IndiaAbout 1.95% + GST on most methods
International cardsAbout 3% + GSTAbout 3%, plus 2% if convertedAbout 4.4% + fixed fee, plus conversionAbout 2.99% + GST
UPIYes, including AutopaySupported since 2026Not offeredYes, including Autopay
Setup and yearly feesNone on the standard planNoneNoneNone
SettlementT+2 working days; instant for a feeRolling payouts; timing varies by countryWithdrawn to an Indian bank in rupeesT+2 working days; instant for a fee
Watch out for3% on Amex, corporate cards and EMIHard to get an Indian accountConversion adds about 3%EMI, Pay Later and international cost more

How to choose

  • Pick Razorpay or Cashfree for a business in India selling to Indian customers, since both handle UPI, cards and netbanking with standard KYC.
  • Pick Cashfree when paying out to many vendors or partners matters as much as collecting money.
  • Pick Stripe when the business is registered outside India, or already holds an invitation, and needs subscriptions or marketplace payouts.
  • Pick PayPal to get paid by clients abroad who already use it, and budget for the conversion cost.

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.