/
WebsiteSupport

DocsRazorpayRazorpay

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

FieldWhere it comes from
Key ID and key secretIn 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 secretIn 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.
The product carries its own help page for Razorpay, with these steps beside the Add button.
The product carries its own help page for Razorpay, with these steps beside the Add button.

Set it up

  1. Open SettingsIntegrations and choose the tab Add an integration.
  2. Find Razorpay and click Add. Give the connection a name you will recognise, for example the name of your shop, and click Add.
  3. The connection page opens. Under Test, paste the test keys from your Razorpay account and click Save test credentials.
  4. Switch the state to Test and click Test connection. A green sentence means Razorpay accepted the keys.
  5. If Razorpay asks for a notification address, copy the one shown under Notifications into your Razorpay account (the table above says where).
  6. 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.

See also