Taking payments
Connecting Razorpay, prepaid and COD.
Payments run through Razorpay, on your own account. Money settles directly to your bank — it never passes through us.
Connecting Razorpay
- Create a Razorpay account and complete their KYC. You cannot accept live payments until they have approved you, and that takes days rather than minutes — start it early.
- In the Razorpay dashboard, go to Settings → API Keys and generate a key.
- In your store: Integrations → Razorpay, and enter:
| Field | Where it comes from |
|---|---|
| Key ID | Razorpay Dashboard → API Keys |
| Key secret | Shown once when you generate the key. Save it somewhere before closing the dialog. |
| Webhook secret | A secret you choose; you set the same value on the Razorpay webhook below. |
The webhook
This step is not optional. The redirect back from Razorpay is not what confirms a payment — the webhook is. Without it, customers can pay and their order will never be marked paid.
- In Razorpay: Settings → Webhooks → Add New Webhook.
- The URL is your store's address followed by
/webhooks/razorpay/. The exact URL is shown on the integration page — copy it from there rather than typing it. - Set the secret to the same value you entered in the store.
- Subscribe to the payment events (payment captured and payment failed at minimum).
Incoming webhooks are signature-verified against your secret before they are believed, so a forged callback cannot mark an order paid.
Testing it
Press Test on the integration — that checks the credentials are accepted. Then place a real order and pay for it, because only that exercises the webhook. Refund yourself afterwards from the Razorpay dashboard.
What customers can pay with
UPI, cards, net banking and wallets, depending on what you have enabled in Razorpay. That is controlled on their side, not here.
Cash on delivery
COD sits in the same order pipeline as prepaid — the difference is only when money arrives. Two things worth knowing before you switch it on:
- COD orders have a materially higher return-to-origin rate. Watch the RTO figure in Shipments once you have volume.
- You pay the courier both ways on an RTO, so a returned COD order costs you money rather than merely earning none.
Recording a payment taken elsewhere
If someone pays by bank transfer or in person, open the order and mark it paid manually. It then behaves exactly like any other paid order — it can be fulfilled, shipped and reported on.
Refunds
Refunds are issued from the Razorpay dashboard, against the payment. Update the order in your store afterwards so your records and Razorpay's agree.
Still stuck? Message us on WhatsApp — we would rather answer than have you guess.