Setting up Razorpay
Set it up in test mode first where Razorpay offers one, and switch to live when a test has worked. Allow an hour, plus any time that Razorpay needs to approve your account.
2 min read
What you need first
- A Razorpay account (razorpay.com). Switch between Test mode and Live mode in the Razorpay Dashboard to see each set of keys.
Your keys and where to find them
| Field | Where it comes from |
|---|---|
| Key ID and key secret | In the Razorpay Dashboard, open Account & Settings, then API Keys, and generate a key. Use the test key (rzp_test_...) for Test and the live key (rzp_live_...) for Live. The key secret is shown once: copy it then. |
| Webhook secret | In Account & Settings > Webhooks, add the notification address shown on the connection page, tick the payment_link events, choose a secret of your own (a long random word), save, and type the same secret here. |


Set it up
- Open Settings›Integrations and choose the tab Add an integration.
- Find Razorpay and click Add. Give the connection a name you will recognise, for example the name of your shop, and click Add.
- The connection page opens. Under Test, paste the test keys from your Razorpay account and click Save test credentials.
- Switch the state to Test and click Test connection. A green sentence means Razorpay accepted the keys.
- If Razorpay asks for a notification address, copy the one shown under Notifications into your Razorpay account (the table above says where).
- Try it with a test payment or a test order. When everything is right, enter the live keys under Live and click Go live.
Test and live
Every connection keeps two sets of keys: one for Test and one for Live. You can fill both at any time; the state decides which one is used.
In Test, Razorpay takes no real money: customers see a test payment page and you pay with the test cards or test numbers Razorpay gives you. A TEST badge shows on the connection and on the payment provider.
Go live asks you to confirm. From then on the connection uses the live keys and everything it does is real. You can switch back to Test or to Inactive at any time; nothing is deleted.