Where: Settings → Readers & money → Connections → Payments
Open this page: admin.<your-site>/settings/connections/payments (replace <your-site> with your site address)
Before you start
- A Razorpay account. Start in Test mode in Razorpay.
- You must be the site owner.
Steps
- In the Razorpay dashboard, switch to Test mode.
- Go to Settings → Advanced → Connect other apps → API keys and generate a key. Copy the key id and key secret. Razorpay shows the secret only once.
- In Keynate, open Settings → Readers & money → Connections → Payments and press Connect Razorpay (or Add connection).
- Choose Test mode. Paste the Key id (it starts with
rzp_test_), the Key secret and the Webhook secret. - Press Connect Razorpay at the bottom of the sheet.
- On the card, find Let Razorpay tell your site about payments. Razorpay doesn't let other apps do this for you, so it is one minute in Razorpay. It has 3 steps:
- Open Razorpay → Webhooks and press Add New Webhook.
- Fill Razorpay's form with the Webhook URL, the Secret and the Active events (tick each one). Each has a Copy button. The secret is shown only once. If you lost it, press Edit, then Make a new secret code for me.
- Press Create Webhook. Then make a small test payment.
- Watch the line under the steps. It says Waiting for Razorpay's first message… and turns green with We received Razorpay's first message. when it works. Payments then show as paid by themselves. Press Check now to look again. Later, Show the steps again opens the steps.
- Press Test connection on the card, then make a test payment.
- When it works, press Go live with Razorpay in the Test mode bar and add your live keys (
rzp_live_). For live mode the card turns green after your first real payment.
More help: Payment messages (webhook).
Good to know
- Key ids must start with
rzp_test_for test mode orrzp_live_for live mode. - Use a different webhook secret for test and live.
Common problems
- "Key ids start with rzp_test_ (test mode) or rzp_live_ (live mode). Copy it from the API keys page inside your Razorpay dashboard."
- "Paste the key secret. Razorpay shows it only once, when you create the key." Generate a new key if you lost it.
- "Paste the webhook secret you typed in Razorpay."
Questions
Frequently asked questions
Where is the Razorpay key page?
The sheet has a link that opens it in a new tab, and the page side panel has Open Razorpay API keys and Open Razorpay webhooks.
How do I know the webhook works?
The card shows We received Razorpay's first message. until then it says Waiting for Razorpay's first message…. If Stripe or PayPal are also on, the card can't tell which sent a message and says so. If you did it once already, nothing more to do.
Where is the test mode switch?
In the Razorpay dashboard. Switch to Test mode before you create keys.