Payment gateway integration for Indian ecommerce websites
Summarize this article with AI
For the impatient (TL;DR)
Choose a payment provider that accepts your business, offers the methods customers use and works with your store platform.
- Hold payments: keep online payments off while live approval or payment handling remains unresolved
- Custom code: worth paying for only to close one specific gap, with upkeep in the price
- Approval: going live is a step apart from technical setup
A customer may see a debit message while your store still shows an unpaid order. Payment gateway integration must connect each payment attempt to an order and verify the result before marking it paid. Choose a provider that accepts your business and supports your payment methods and store platform.
You can prepare the requirements before approaching providers or asking a developer for a quote. Decide what customers should see when a result is unclear and who will investigate it. Test these situations before launch so you can judge the connection by correct order handling, rather than a successful checkout alone.
Understand what the gateway connects
Your integration must link each payment attempt to an order, then update that order from a verified provider result. The gateway connection exchanges payment requests and results with the provider. A payment method is how your customer pays, such as by card.
Your website’s backend, the system running on its server, should check the payment against the order reference, expected amount and currency. Ask your developer to follow the provider’s verification instructions. A return screen alone is not proof of payment.
Webhooks are notifications that the provider sends directly to your website’s server. Where supported, they let the store receive results even if the customer closes the checkout tab. These notifications also need verification before they update an order.
Your payment automation workflows should send paid-order emails and fulfilment instructions only after the required payment result has been verified. Keep pending orders unresolved. If a provider separates authorisation, or payment approval, from capture, or collection, agree which confirmed status permits fulfilment.
Settlement is the later transfer of money into your business bank account. Track it separately from the paid-order status and your fulfilment decision.
- Checkout startsAssociate each attempt with its purchase record.
- Processor feedbackAuthenticate processor responses, including direct server notifications where available. A return screen cannot prove success.
- Purchase validationValidate the purchase ID, expected total and currency server-side. Apply paid status only after the required result is authenticated; pending purchases stay unresolved.
- Bank depositPayout arrives later as a business bank deposit. Monitor it independently of purchase status and fulfilment.
Set your Indian payment and approval requirements
Confirm that a provider accepts your business and supports your required payment methods before committing to development work.
1. Customer and platform needs
List the payment methods customers need, such as UPI, or Unified Payments Interface, cards, net banking and particular wallets. Ask providers which methods are available for your business category, currencies and account. Check that the connection to your store platform supports those same methods and payment flows.
Your website designing requirements should cover mobile app handoffs, desktop payments and clear messages for unresolved orders. Confirm how a customer returns from a payment app or checks an order if the return fails. Do not assume a particular UPI flow is available.
2. Approval for live payments
KYC, or Know Your Customer, is the provider’s identity and business verification process. Access to a test environment does not mean your business is approved to accept live payments.
Ask for the eligibility checks and documents that apply to your business. Prepare business and payout bank details, along with clear product, contact, delivery and refund information for review. Requirements vary, so do not treat a generic checklist as mandatory. Confirm approval and enabled payment methods before showing them as available.
How we chose the integration routes
A lower quote or more checkout control cannot compensate for a connection that misses an essential requirement.
What we compared: Maintained platform connectors and custom connections against the same store requirements.
How we chose them: Business eligibility, required payment methods and compatible order and refund behaviour are pass-or-fail requirements. Compare checkout control, maintenance effort and cost only among routes that meet them.
Where the details come from: The linked official sources explain encrypted connections, password protection, web address privacy and card disputes. This comparison is not a product audit.
What we left out: Provider rankings, coding instructions, fixed prices and assumptions about account approval.
If an essential feature is unclear in the documentation, get written confirmation before treating that route as suitable.
Choose a supported connector or a custom connection
Choose a maintained connector when its documented features cover the payment, order and refund processes your store needs.
A connector is ready-made code linking a particular store platform to a payment provider. It may use an application programming interface, or API, which lets software exchange requests and results. Custom integration means your developer builds that connection for your store. It does not mean building a new payment gateway.
| Criterion | Maintained connector | Custom connection |
|---|---|---|
| Compatibility | Prebuilt for a particular platform and provider combination. Check support for the versions and payment flows your store uses. | Your developer must match the provider’s API to your store’s systems. |
| Required payment methods | The connector may support fewer methods than the provider offers. Confirm support for each required method in both the connector and your approved account. | Custom code cannot add methods your provider does not permit for the account. |
| Checkout control | Built-in settings define what you can change without extra code. Check what the platform, connector and provider’s payment screen allow. | You can define more of the surrounding checkout, within the provider’s permitted flows. |
| Order and refund updates | Documented, prebuilt behaviour determines which payment and refund updates the connector handles. Your team must configure and test those flows and handle cases the connector leaves unresolved. Confirm how unresolved results appear in your store. | Your team builds and tests payment, refund and recovery rules. |
| Data responsibilities | The connector’s design determines where payment details go. Check its documentation to see what reaches your store and which systems can access it. | Your developer defines how data moves within the provider’s permitted setup. Document which systems handle payment details, including provider-managed collection where used. |
| Maintenance | The maintainer supplies fixes for the connector’s code under its support terms. Your store still needs an owner for applying updates and checking compatibility. Confirm who handles conflicts with other store software. | Your technical owner must maintain the code built for your store, including fixes, compatibility changes and repeat payment tests. |
| Cost drivers | Allow for setup, testing, any licence fees and ongoing support. | Budget for building the required flows, recovery rules and tests, plus maintenance. |
Suppose your store uses an order system that no maintained connector supports. Custom work may be justified if the provider’s API can support the required payment flow. The reason is a documented gap, not the type of business you run.
Choose the payment-screen location separately from the connection route. A hosted redirect sends customers to the provider’s payment page. Where supported, embedded fields let the provider collect payment details within your checkout page. Both routes may use provider-managed collection. Screen location alone does not establish which systems handle sensitive data.
Include checkout behaviour, verified order updates and refund handling in the brief for your ecommerce website development. Your website development scope should make any exclusions explicit before you agree to the work.
Define payment security and account ownership
Keep the payment account under your business’s control and agree who can access it before the developer starts work.
Record who controls the payout bank account and who can approve refunds. Give developers only the access their work needs. Agree how private connection keys and passwords will be stored and handed over. Keep private keys out of code sent to customers’ browsers. For a WordPress store, follow its password security guidance on strong, unique passwords and using a password manager.
HTTPS encrypts information travelling between a browser and web server, as WordPress’s HTTPS guidance explains. It does not verify payment results or cover every payment-security responsibility.
Keep sensitive customer information and private credentials out of return-page URLs, the web addresses customers see. Google’s web.dev guidance explains how sharing full URLs between sites can expose private information.
PCI DSS is the Payment Card Industry Data Security Standard, referenced in Google’s integration guidance. Ask your provider which requirements apply to your setup and what evidence it needs. Your responsibilities depend on how payment data is handled, not simply the connection route.
Plan fees, settlements and refunds
Ask for an itemised quote that separates building and maintaining the connection from the provider’s payment-processing charges. Prices depend on your platform, required payment flows and recovery work, so compare the same scope across quotes.
Ask whether connector licences, platform charges, refunds, disputes or currency conversion create additional costs. Confirm whether quotes include taxes. Not every setup carries every fee.
Confirm the settlement schedule for your account, possible holds and where you can see payout status. Use the provider’s stated terms when planning outgoing payments.
Reconciliation means matching store orders, provider transactions and bank receipts, including recorded deductions or adjustments. Ask which reports and transaction references link those records. Name the person who will investigate differences.
A requested refund, a provider-confirmed refund and receipt of money by the customer are separate stages. Agree who checks progress and answers customers. Ask what the provider’s records can confirm before setting expectations about when funds will arrive.
A chargeback can follow a customer disputing a card payment through their card issuer, as Shopify’s chargeback explanation describes. It is separate from a routine refund and is not a label for every UPI complaint. Ask your provider which records to keep, where to send them and what response deadlines apply.
Test payment outcomes before going live
Accept the integration only when payment outcomes produce the right order state, customer message and staff follow-up.
For example, open Transactions → Payments in Razorpay’s test dashboard and look up the payment ID from your checkout attempt. Compare the provider order ID and amount with your store’s order. Verify the provider status independently before your test passes.

A sandbox is the provider’s practice environment for testing payment behaviour. Use its supported test cases. After approval, follow the provider’s instructions for permitted live checks.
- Successful payment. A verified successful result matches the order, expected amount and currency. The store marks the order paid once and shows the correct confirmation.
- Decline or cancellation. The order stays unpaid. The message explains that payment did not complete and offers a way back to checkout.
- Pending payment. The order stays unresolved and is not sent for fulfilment. Tell the customer how to check its status or contact support. Do not prompt another payment before the earlier attempt has been checked.
- Interrupted return. Test mobile app handoffs, desktop checkout, closed tabs and connection interruptions. The store follows the provider’s verified result, not whether the customer returns to a page. An unclear result leads to a status check, not an automatic failure message.
- Repeated actions. Test repeated pay-button clicks and repeated provider notifications for the same attempt. They should not cause duplicate collections, fulfilment actions or confirmation messages. The customer should see the attempt’s current status.
- Payment succeeds but the order update fails. Staff can trace the provider’s payment reference to the order and correct its status. They can explain the result to the customer without requesting another payment.
- Refunds and financial records. Where test tools allow, check that refund statuses and transaction references appear in the expected records. Confirm how permitted live checks will verify matching with bank receipts.
Clear instructions support checkout conversion rate optimisation, which aims to help more visitors complete a purchase. Check recovery messages as carefully as the pay button.
Assign someone to review unresolved payments, and record when they should involve the developer or provider. Keep support contacts and the transaction references staff need in the handover.
Conclusion
Accept an integration proposal when its documented scope covers your store’s requirements and the quote reflects that work. Agreeing to the scope is not the same as authorising customer payments.
If live approval is unresolved or payment handling remains unproven, keep customer-facing online payments disabled until those gaps are resolved.
Key takeaways
- Specify customer needs: List required payment methods, currencies and mobile or desktop flows before comparing providers.
- Confirm live approval: Ask for the checks that apply to your business. Treat test access and permission to accept real payments as separate steps.
- Justify custom work: Get a clear explanation of any gap a maintained connector cannot cover, along with a maintenance plan.
- Verify payment results: Require the store to match the provider’s verified result to the order, expected amount and currency before changing paid status.
- Control account access: Keep payout controls with the business and document staff permissions, private credentials and handover.
- Track the money: Compare itemised charges and agree how orders, provider records, refunds and bank receipts will be matched.
- Test unclear outcomes: Ask for demonstrations of pending, interrupted and repeated attempts, plus recovery when a paid order fails to update.
If you are planning payments for a new online store, RankSprings builds new ecommerce websites and can help define the payment connection, checkout flow and handover requirements. Explore its website development services to discuss what your store needs before agreeing the build.
Frequently asked questions
1. Can I keep cash on delivery alongside online payments?
Yes, if your platform supports both options. Give cash on delivery its own payment status so staff do not treat those orders as paid online. Decide how delivery collections are recorded and matched to orders. Sharing a checkout does not mean both options use the same payment records.
2. Does Google Pay support automatically include UPI?
No. Google’s general API documentation describes card-based payment data. It does not establish UPI support for your store. Ask your provider which UPI flows your account and connector can use. A Google Pay logo or global integration tutorial is not enough to confirm availability.
3. Will the same integration work for overseas customers?
Not automatically. Confirm whether your provider accepts foreign-issued cards and any other methods your customers need. Check the currencies displayed and charged at checkout, plus the currency paid into your bank account. Your approved account and connector must support the required combination, not just domestic payments.
4. Can I use this integration for subscriptions later?
Only if your provider and connection support the recurring payments you need. Confirm customer consent, cancellation and failed-renewal handling. In Google’s documented recurring flow, you manage billing through your gateway’s APIs. That does not establish support for Indian recurring-payment authorisations or permission to store raw card details.
5. Should I add a second gateway as a backup?
Only if you can manage the extra support and financial records. Decide which provider receives each payment attempt and how staff track it. Check unresolved attempts before starting another collection. A backup connection also needs testing and maintenance, so treat it as another system to manage.
6. Can I launch the website before the gateway is approved?
You can publish product and policy pages separately from enabling online payments. Keep unavailable payment methods disabled, and describe only alternatives that are genuinely ready to use. Before inviting customers to pay online, confirm live approval and complete the payment tests and staff handover.
7. What happens if I change my website platform later?
Check whether the new platform has a supported connection for your provider. Keep access to past transactions and refund records while moving the store. Ask the provider whether any saved payment methods can transfer. Do not assume customer payment details will move with the website. Test the new connection independently before taking payments.