WordPress India

How to Set Up Razorpay, UPI and Cash on Delivery in WooCommerce

How to Set Up Razorpay, UPI and Cash on Delivery in WooCommerce

To accept payments in an Indian WooCommerce store, you typically connect a payment gateway such as Razorpay for UPI, cards and net banking, and switch on WooCommerce’s built-in cash on delivery. Here is the overall process.

Step 1: Create a payment gateway account

Sign up with a gateway such as Razorpay and complete its business verification (KYC). You will need business and bank details. Approval can take a few days.

Step 2: Install the gateway plugin

Install the gateway’s official WooCommerce plugin and enter the API keys from your gateway dashboard. Start in test mode.

Step 3: Test a payment

Place test orders with the gateway’s test details and confirm that orders show as paid in WooCommerce and that emails go out.

Step 4: Enable cash on delivery

In WooCommerce → Settings → Payments, enable Cash on delivery. You can limit it to certain shipping methods or areas.

Step 5: Go live

Switch the gateway to live keys and place one small real order to confirm everything works end to end.

Tips for Indian stores

  • Show UPI prominently; many shoppers prefer it.
  • Consider a small COD fee or order minimum if returns are a problem.
  • Make sure order confirmation emails and WhatsApp updates reach customers.

Want it done for you? See our WooCommerce store builds.

Frequently asked questions

Can I offer only UPI?

Yes, but offering cards and COD as well usually converts more buyers.

Who pays the gateway charges?

The seller pays the gateway’s per-transaction fee.


Need help with your WordPress website? WP-India builds WordPress websites from ₹4,999 with domain, hosting and email included for the first year. WhatsApp us or see our packages.