E-commerce

How to Accept Online Payments on a WordPress Website in India: UPI, Cards, Gateways, KYC and Setup

Accept online payments on WordPress in India: Razorpay, Cashfree, PayU, PhonePe or CCAvenue, UPI, KYC, settlements, WooCommerce setup and test mode.

How to Accept Online Payments on a WordPress Website in India: UPI, Cards, Gateways, KYC and Setup
On this page
  1. Ways to take payments on WordPress
  2. Payment gateways available to Indian businesses
  3. How UPI works on a website
  4. KYC and getting approved
  5. Settlements: when the money reaches your bank
  6. Setting up a gateway in WooCommerce, step by step
  7. Test mode: what to check before going live
  8. Taking payments without a full store
  9. Common problems and fixes
  10. Keeping payments secure
  11. Quick check: does every payment outcome work?
  12. When to get help
  13. FAQs
Key takeaways
  • Open an account with an Indian payment gateway in your business name, complete KYC and publish your policy pages, then connect the gateway to WooCommerce, a payment form or payment links.
  • Set up webhooks so orders paid by UPI are marked paid even if the customer never returns to your site, and check the settlement cycle so you know when money reaches your bank.
  • Test in test mode first, including failed, cancelled and refunded payments on a phone, then switch to live keys and confirm with a real low-value order.

To accept online payments on a WordPress website in India, open an account with an Indian payment gateway such as Razorpay, Cashfree, PayU, PhonePe Payment Gateway or CCAvenue in your business name, complete its KYC checks and make sure your site shows contact details and policy pages. Then install the gateway's official plugin for WooCommerce, or use a payment form or payment links if you don't need a full store, add your test keys, set up webhooks and test every outcome before switching to live keys. Customers can then pay by UPI, cards, net banking and wallets in one checkout.

Payment setup touches the website, the gateway dashboard and your business paperwork, which is why it is part of every store I build as a WooCommerce developer: the gateway is set up in test mode first, with successful, failed and cancelled payments, order emails and webhooks tested before going live. This guide explains each step so you know what is involved.

Still choosing a provider? How to choose a payment gateway in India covers what to compare, from fees to international cards. This guide is about getting one working on WordPress.

Ways to take payments on WordPress

MethodBest forWhat you needOrders tracked automatically?
WooCommerce checkoutProducts, a menu, anything with a cartWooCommerce plus the gateway's pluginYes
Payment formConsultation fees, registrations, course fees, donationsA form plugin that supports your gatewayYes, as form entries
Payment links, buttons or pagesOccasional payments, invoices, WhatsApp salesThe gateway's dashboard; a button embedded on a pageIn the gateway dashboard
Static UPI QR codeVery small businesses, low volumesA QR image from your bank or UPI appNo; you match payments by hand
Cash on delivery or bank transferStores whose customers prefer to pay laterBuilt into WooCommerceYes, marked paid manually

A static QR code needs no gateway, but nothing confirms the payment automatically, so it doesn't scale beyond a handful of orders. If you haven't chosen a store platform yet, see WooCommerce vs Shopify in India.

Payment gateways available to Indian businesses

GatewayWordPress supportWorth knowing
RazorpayOfficial WooCommerce plugin; payment links, buttons and pagesWidely used, with a large set of payment methods and good documentation
CashfreeWooCommerce pluginAlso offers payouts, useful if you pay vendors or refunds in bulk
PayUWooCommerce pluginA long-established option with broad payment method coverage
PhonePe Payment GatewayWooCommerce pluginWorth considering for UPI-heavy audiences
CCAvenueWooCommerce integrationOne of the older Indian gateways, with many payment options
StripeWooCommerce pluginHas limited sign-ups for new Indian businesses in recent times; check whether it accepts accounts like yours before planning around it
PayPalWooCommerce pluginIn India it is for receiving international payments rather than domestic ones, at the time of writing

Before installing any plugin, check it is the gateway's official one, recently updated and compatible with your WooCommerce version, including the block-based checkout if your store uses it.

How UPI works on a website

UPI comes through the gateway, not as a separate integration. On a phone, the checkout can open the customer's UPI app directly; on a desktop, it usually shows a QR code to scan. Either way, the customer leaves your page to approve the payment and may never come back to it, especially on a weak connection. That is why webhooks matter: the gateway tells your site the payment succeeded, server to server, and the order is marked paid regardless of what the customer's browser does. For recurring payments such as memberships, gateways offer UPI AutoPay and card mandates, subject to RBI's e-mandate rules.

KYC and getting approved

Payment aggregators in India work under RBI rules, so onboarding includes proper verification. Requirements vary by gateway and business type, but expect:

  • PAN of the business or proprietor
  • A current account or bank account in the business name
  • Business proof, such as a GST certificate, Udyam registration or shop and establishment licence
  • Address and identity proof for directors, partners or the proprietor
  • A business category the gateway supports; some categories are restricted or need extra approval

Gateways also review your website. Before applying, make sure it is live (not a "coming soon" page) and shows:

  • Your business name, address, phone number and email
  • Clear products or services with prices
  • Terms and conditions and a privacy policy
  • Refund and cancellation policies, and shipping or delivery terms if you ship goods

Privacy policy basics for Indian websites covers the privacy page. Missing policies are among the most common reasons applications are sent back.

Settlements: when the money reaches your bank

Settlement is when the gateway pays collected money, minus its fees and GST on those fees, into your bank account. Standard cycles are commonly around two working days after the payment (written T+2), though new accounts can start on a longer cycle and some gateways offer faster settlement for an extra charge. Check the cycle in your agreement, and in what situations the gateway can hold a settlement, such as unusual volumes or disputes.

Use the gateway's settlement reports to match payouts against WooCommerce orders. Refunds are usually deducted from future settlements. If you are GST-registered, see WooCommerce GST setup and invoices for the store side.

Setting up a gateway in WooCommerce, step by step

  1. Apply early. Approval is in the gateway's hands, so start while the site is being built. Most gateways give you test-mode access straight away.
  2. Install the official plugin from the WordPress plugin directory or the gateway's documentation.
  3. Generate test API keys in the gateway dashboard and paste them into WooCommerce > Settings > Payments, under the gateway's settings.
  4. Set up the webhook. Copy the webhook URL the plugin shows into the gateway dashboard, add a webhook secret if asked, and select the payment events the plugin's documentation lists.
  5. Check store settings: currency set to Indian rupee, the checkout page working, order emails enabled.
  6. Test every outcome using the checklist below.
  7. Switch to live keys once your account is activated, update the webhook for live mode, place a real low-value order and refund it.

Test mode: what to check before going live

Gateways publish test card numbers and test UPI details in their documentation for this. Test on a phone as well as a desktop.

ScenarioWhat should happen
Successful paymentOrder moves to Processing, stock reduces, customer and admin emails arrive
Failed paymentOrder shows Failed or stays Pending payment; the customer can try again
Cancelled at the payment screenThe customer returns to the checkout, not a blank page
Browser closed after payingThe webhook still marks the order paid
Refund from the order screenThe refund reaches the gateway and the order notes record it
Cash on delivery, if offeredOrder moves to Processing with COD shown on emails and invoices

If you offer COD as well, set its rules at the same time; see Cash on Delivery in WooCommerce.

Taking payments without a full store

Not every site needs a cart. Consultants, clinics, coaching institutes and event organisers can use a payment form that collects details and payment in one step, or a payment page or button from the gateway. Booking deposits work the same way; online appointment booking covers taking deposits alongside bookings. NGOs and trusts have extra steps for 80G receipts and foreign donations; see online donations for NGOs.

Launching a full store? Use the WooCommerce launch checklist before going live.

Common problems and fixes

  • Application sent back: usually missing policy pages, prices or contact details on the site, or a business category that needs extra documents.
  • Paid orders stuck at "Pending payment": almost always a missing or wrong webhook, or test keys in one place and live keys in another.
  • Payment option missing at checkout: the gateway isn't enabled, the currency isn't INR, or the plugin doesn't support the block checkout.
  • Checkout errors after an update: a plugin conflict or a security rule blocking the gateway's callback.

Fixing a payment gateway that isn't working in WooCommerce goes through each of these in detail.

Keeping payments secure

With a gateway's hosted page or popup, card details are entered on the gateway's side rather than stored on your server, which keeps most of the card security burden with the gateway. Your side of the job is a secure site: HTTPS everywhere, WordPress and plugins kept updated, strong unique admin passwords with two-factor login, and regular checks that nobody has added unknown scripts to the checkout page.

Schools and coaching institutes often collect fees this way; see what parents and students look for.

Protect your checkout from card skimmers: see WooCommerce skimming malware.

Quick check: does every payment outcome work?

With the gateway in test mode, place three test orders: one paid, one where you cancel on the payment page and one that fails. Then open WooCommerce, Orders and check that they show Processing, Pending payment and Failed respectively. Next, open WooCommerce, Status, Logs and look for your gateway's log: webhook errors there are the usual reason paid orders stay stuck on Pending.

Collecting donations rather than payments? See how to set up online donation to temples, trusts and NGOs, with UPI QR codes and automatic receipts.

When to get help

Get help when paid orders stay on Pending, when webhooks or KYC approval are holding you up, or when you need UPI, cards and COD working together. Through WooCommerce development your gateway is connected, webhooks configured, test orders run for every outcome and the first live order confirmed with you. To start, send your website address.

If you have picked Razorpay, follow the click-by-click tutorial on how to add Razorpay to WooCommerce, from API keys to the webhook and a live test.

FAQs

Which payment gateway is best for a WordPress website in India?

There's no single best one. Razorpay, Cashfree, PayU, PhonePe and CCAvenue all support UPI, cards and net banking and work with WooCommerce. Choose on fees for your mix of payment methods, settlement cycle, KYC fit for your business type and the quality of the plugin.

Can I accept UPI payments on WordPress without a gateway?

You can show a static UPI QR code from your bank, but payments aren't linked to orders automatically, so you have to check each one by hand. A gateway confirms UPI payments and updates orders for you.

Do I need GST registration to get a payment gateway?

Not always. Many gateways onboard proprietors with PAN, a bank account and other business proof, but requirements depend on the gateway, your business type and category. Ask your CA whether you need GST registration for your business itself.

How long does payment gateway approval take?

It varies with the gateway, your documents and how complete your website is. Apply early, use test mode to build and test in the meantime, and make sure policies and contact details are live before you apply.

Can I use Stripe for a website in India?

Stripe has limited new sign-ups for Indian businesses in recent times. Check its current status for your business before planning around it; Indian gateways such as Razorpay or Cashfree are the usual choice for domestic payments.

Can I accept payments from customers outside India?

Yes, through international card acceptance on an Indian gateway, which is often a separate activation, or through PayPal for international payments. Ask about currency conversion, fees and export paperwork for your CA.

Need help with your website?

I'm a freelance WordPress developer building fast, SEO-friendly websites since 2020. Tell me what you need and I'll reply with a plan and a fixed quote, usually within 24 hours.

Found this useful? Share it:
Contact

Let's build your next website

Available for freelance projects, agency white-label work and long-term maintenance. Feel free to pass this along to your team or company.

I reply within 24 hours, usually the same day. Your details are emailed to me, then WhatsApp opens so we can chat right away.

Chat now