E-commerce

How to Add a Payment Gateway to Your E-commerce Website in India

Choosing a gateway, passing KYC, preparing your website for approval, and going live with UPI, cards and COD, step by step.

Quick answer

To accept online payments in India: 1) choose an RBI-authorised payment aggregator such as Razorpay, Cashfree or PayU, 2) complete KYC with your PAN, business proof and bank account, 3) make sure your website shows the required policies and contact details, 4) install the gateway's plugin or API on your store, 5) test in sandbox mode, then go live. Standard fees are about 2% per transaction plus 18% GST.

Payments are where many first-time online stores get stuck: rejected applications, mismatched names, missing policy pages or broken checkouts. We set up gateways on every e-commerce website development project, and this is the process that gets approvals through first time.

Step 1: Choose a payment gateway

In India, online payment collection for merchants runs through RBI-regulated payment aggregators. The most common choices for small and growing stores are:

GatewayStandard pricing (published)Known for
Razorpay2% + GST on most domestic methods[1]Easy onboarding, strong dashboard, wide plugin support
CashfreeAbout 1.95–2% + GST on cards, netbanking, wallets[2]Fast settlements, payouts and COD tools
PayUCustom and standard plansLong-standing, broad payment options
PhonePe PG, CCAvenue and othersVaries by planUPI strength (PhonePe), many methods (CCAvenue)

UPI has 0% MDR under government rules, but gateways may still charge a platform fee for processing[3]. Pricing changes and is negotiable at higher volumes, so compare current rate cards.

What to compare

  • Fees for UPI, cards, netbanking, EMI and international cards
  • Settlement time (T+1, T+2) and instant settlement options
  • Plugin support for your platform: WooCommerce, Shopify or custom API
  • Checkout experience and success rates on mobile
  • Support quality and dispute or chargeback handling

Step 2: Prepare KYC documents

RBI's payment aggregator guidelines require gateways to complete merchant KYC before live transactions[4]. Typically you'll need:

  • PAN (business PAN for companies and LLPs; personal PAN for proprietors)
  • Business proof: GST certificate, Udyam registration, shop act licence or incorporation certificate
  • Bank account in the business name (cancelled cheque or bank statement)
  • ID and address proof of the authorised signatory
  • Website URL with live product pages and policies

Most common rejection: name mismatches. The business name on your PAN, bank account and GST certificate should match exactly. Fix this before applying.

Step 3: Make your website "approval-ready"

Gateways review your site before activating payments. Have these live first:

  • Real products or services with prices in INR
  • Contact page with business name, address, email and phone
  • Terms and conditions
  • Privacy policy
  • Refund and cancellation policy
  • Shipping and delivery policy (for physical goods)

These pages also help you meet India's Consumer Protection (E-Commerce) Rules, 2020, which require clear return, refund, delivery and grievance information[5]. See our D2C website checklist for the full list.

Step 4: Integrate the gateway

WooCommerce

  • Install the gateway's official plugin
  • Paste API keys (test first)
  • Enable UPI, cards, netbanking, wallets
  • Set webhooks for payment status

Shopify

  • Add the gateway as a payment provider
  • Connect your gateway account
  • Remember Shopify's third-party fee applies in India[6]

Custom websites use the gateway's checkout SDK and server-side APIs. Always verify payments on your server using the gateway's signature or webhook. Never trust the browser alone, or someone could fake a "payment successful" response.

Step 5: Set up COD rules (optional)

Cash on Delivery isn't processed by the gateway, but it affects your checkout. Common rules include order-value caps, blocked pin codes with high RTO, a small COD fee, and a discount for prepaid orders. Compare platform options in Shopify vs WooCommerce.

Step 6: Test everything in sandbox mode

  1. Run test payments with each method: UPI, card, netbanking, wallet.
  2. Test failures: declined card, abandoned UPI, timeout.
  3. Check order status updates correctly in your store and the gateway dashboard.
  4. Confirm customer emails or WhatsApp messages and GST invoices are generated.
  5. Test a full refund and a partial refund.
  6. Repeat on a real Android phone and an iPhone.

Step 7: Go live and monitor

Switch to live keys, make one small real payment, and refund it. Then watch for the first week:

  • Payment success rate by method
  • Settlements arriving on schedule
  • Webhook failures or stuck "pending" orders
  • Chargebacks and disputes

Key takeaways

  • Pick an RBI-authorised aggregator; compare fees, settlements and plugins.
  • Match names across PAN, bank and GST to pass KYC quickly.
  • Publish contact, terms, privacy, refund and shipping pages before applying.
  • Verify payments server-side and test every method before going live.

FAQs

Razorpay and Cashfree are popular with small businesses for quick onboarding, UPI support and good plugins. The best choice depends on your fees, settlement needs and platform.

Some gateways onboard proprietors without GST for certain business types, using other business proofs. Requirements vary, so check with the provider and your CA.

Often 1–7 working days, depending on how complete your documents and website are. Name mismatches and missing policy pages are the main causes of delay.

UPI has 0% MDR by regulation, but payment gateways may charge a platform fee. Check your gateway's current UPI pricing.

Usually yes, or an app or social store with clear business details and policies. Some gateways also offer payment links and pages for businesses without a full website.

References

  1. Razorpay. "Razorpay Payment Gateway Pricing Explained." razorpay.com
  2. Xflow. "Cashfree Payment Gateway Charges." xflowpay.com
  3. Razorpay. "UPI Charges Explained: MDR vs Platform Fees." razorpay.com
  4. Razorpay. "Payment Gateway KYC Onboarding in India." razorpay.com
  5. Corpbiz. "Consumer Protection (E-Commerce) Rules, 2020." corpbiz.io
  6. Shopify. "Pricing (India)." Accessed 4 Oct 2026. shopify.com/in/pricing

Fees and KYC requirements change. Confirm with your chosen gateway before applying.

Ready to build a website that grows your business?

Tell us about your project. We'll reply within 24 hours with ideas and a fixed quote in INR.