Payment gateway integration for a website in India means connecting your site to an RBI-authorised payment provider so customers can pay by UPI, cards, net banking or wallets, and your system reliably knows which payments succeeded. It has two halves. The business half is approval: KYC documents, a live website with the right policy pages and a settlement bank account. The technical half is the integration itself: choosing hosted, embedded or API checkout, verifying every payment on your server, handling webhooks, refunds and failures, and testing before you go live. This guide covers both halves in plain language, with a worked example, so you can brief a developer properly or check the work of the one you have.
What does a payment gateway integration involve?
A payment gateway integration connects three parties: your website, the gateway and the customer's bank or UPI app. Your site creates an order with an amount, the gateway shows a checkout where the customer pays, and the gateway tells your site the result. The integration is only complete when your site confirms that result on its own server before marking the order paid, sending a receipt or releasing a booking.
Most of the effort sits around the edges: approval paperwork, failed and pending payments, refunds, settlement reports and making the checkout feel smooth on a phone. Our ecommerce website development guide covers how to compare gateways on fees and support. This post focuses on what happens after you have picked one.
What do you need before a gateway will approve your website?
Gateways in India must follow RBI's rules for payment aggregators, so they check both your business and your website before activating live payments. Expect to share your PAN, business registration proof, GST certificate where applicable, a current account in the business name and identity documents for the owners or directors. Sole proprietors can usually onboard too, with proprietor documents.
The website check catches many people out. Reviewers usually expect a working site on your own domain with clear product or service descriptions and prices, contact details including a physical address, and published privacy, terms, refund and cancellation, and shipping or delivery policies. A half-built site or one selling restricted products can be rejected. Build these pages before you apply, and approval often takes a few working days rather than weeks.
Pages reviewers usually look for:
Which type of integration should you choose?
There are four common routes. Payment links and hosted payment pages need no coding: you share a link or button and the gateway handles everything, which suits consultants, coaches and small sellers. Plugins for WooCommerce, Shopify and other platforms connect a store in an afternoon. Standard or embedded checkout opens the gateway's secure payment window on your own site with a little developer work, and it is the usual choice for custom websites.
Custom API integrations, sometimes called server-to-server, give full control over the payment screens but bring a heavier security and compliance burden, because more card data handling touches your systems. For most Indian small and mid-sized businesses, the standard checkout is the right balance: it looks native, supports every method and keeps sensitive data on the gateway's side.
Integration routes, simplest first:

How does the integration work step by step?
A typical standard checkout flow has five steps. Your server creates an order with the gateway using your secret key, which must never sit in browser code. The site opens the checkout with that order ID. The customer pays. The gateway returns a payment ID and a signature to your site. Your server then verifies that signature with your secret key, and only then marks the order as paid.
Alongside this, set up webhooks: server-to-server messages the gateway sends when a payment is captured, fails or is refunded. Webhooks catch cases where a customer pays but closes the browser before returning to your site, which is common on patchy mobile data during a commute. Make your webhook handler safe to receive the same event twice, and record every event so your team can trace any disputed payment later.
How do you make UPI and mobile payments work smoothly?
Most Indian buyers will pay on a phone, often by UPI, so design for that first. On mobile, UPI intent flows that open the customer's UPI app directly usually feel smoother than asking them to type a UPI ID. Show UPI prominently, keep the order summary visible and avoid extra pages between the cart and the payment window. Test on the UPI apps your customers actually use.
Plan for the pending state. UPI payments sometimes take a little while to confirm, so show a clear 'confirming your payment' screen rather than an error, and rely on the webhook to update the order. Send a WhatsApp or SMS confirmation once payment is verified, because buyers who see nothing tend to pay twice or call your team. For carts that fail at payment, our guide to abandoned cart recovery explains how to follow up.
What security and compliance rules apply?
The golden rule is to never store card details yourself. Under RBI's card tokenisation rules, merchants cannot keep full card numbers, and saved-card features run through tokens managed by card networks and gateways. Using the gateway's standard checkout keeps card data off your servers and greatly reduces your PCI DSS burden. Keep API keys in server environment settings, rotate them if a developer leaves, and use separate test and live keys.
Recurring payments have their own rules. Card and UPI mandates need the customer's consent at setup, advance notice before each debit and extra authentication above a threshold set by RBI, at the time of writing Rs 15,000 for most categories. If you sell subscriptions or monthly fees, ask your gateway which mandate options it supports. Our website security checklist covers the wider protections a site handling payments needs.

Worked example: online fee collection for a coaching institute
Say a hypothetical coaching institute in Thane wants parents to pay a Rs 8,000 term fee online through its WordPress site instead of at the front desk. The simplest start is a payment page per course with fixed amounts, linked from the course pages and WhatsApp. That can go live within days of approval and needs almost no development.
As volumes grow, the institute might move to a standard checkout on a custom fee form that captures the student's name, batch and phone number, creates the order on the server, verifies each payment, and sends the receipt and a WhatsApp confirmation automatically. Webhooks update a Google Sheet or CRM that the accounts team reconciles against settlement reports each week. Instalments could later use mandates. The point of the example is the order: start simple, then add automation where staff time is being lost.
FAQs: Worked example: online fee collection for a coaching institute
Can I accept payments without a website?
Yes. Most gateways offer payment links and payment pages you can share on WhatsApp or social media. A website is still useful for trust, and some features or higher limits may need one.
How long does integration take?
Payment links can be live within a day of approval. A plugin takes a few hours to set up and test. A custom checkout with webhooks and receipts usually needs a few days to a couple of weeks.
How do you test before going live?
Every major gateway offers a test mode with test keys and test payment methods. Run successful payments, failed payments, cancelled payments and refunds on each method you plan to offer, on both a phone and a laptop. Check that orders update correctly, receipts and confirmations go out once, and webhooks arrive even when you close the browser mid-payment.
Then do a small live test with a real low-value payment and a refund, and confirm the money settles into your bank account and appears in the gateway dashboard and your own records. Set up alerts for failed webhooks and a weekly reconciliation habit. A sudden fall in payment success rate often signals a gateway or bank issue, and noticing it on day one rather than week three saves real money.
When does it make sense to hire a developer or agency?
Plugins and payment links are often manageable yourself. Bring in help for custom websites, recurring payments, integrations with a CRM or accounting software, multi-step bookings, or when payments already fail and nobody knows why. Integration cost in India varies with scope, from a small fee for plugin setup to a larger project for custom checkout with webhooks, receipts and reconciliation.
Go Beyond Driven builds websites that sell, through our website design and development service. We set up the policy pages gateways ask for, integrate standard checkout with server-side verification and webhooks, design mobile-first payment flows with UPI up front, and connect confirmations to WhatsApp, email and your CRM, then track payments as conversions so your ads learn from real revenue.
Final thoughts
Payment gateway integration for a website in India is straightforward when you treat it as a business process, not just a button. Get approval paperwork and policy pages ready, choose the simplest integration that fits, verify every payment on your server, use webhooks and test every failure case. If you want your checkout or website reviewed, book a free marketing audit with Go Beyond Driven, or call or WhatsApp +91 91378 79539.



