Connect Razorpay to collect payments in chat

Updated on

This takes about 10 minutes. You need an owner or admin login in ChatDesq and a Razorpay login that can open API Keys and Webhooks.

1. Get your API keys from Razorpay

  1. In the Razorpay Dashboard, open Account & Settings → API Keys.
  2. Generate a key (or regenerate one). Razorpay shows the Key Secret only once, so copy both the Key ID and the Key Secret now.

Test keys start with rzp_test_ and live keys with rzp_live_. Start with Test keys if you want to try everything without real money.

2. Paste them in ChatDesq

  1. Open Integrations → Payments and click Set up payments (or Connect Razorpay).
  2. Pick Live or Test to match your keys.
  3. Paste the Key ID and Key Secret and click Save and check keys.

ChatDesq checks the keys with one call to Razorpay and stores them encrypted. The secret is never shown again; you see only the start and end of the Key ID.

3. Add the webhook in Razorpay

Razorpay only lets you add webhooks in its own dashboard, so this step is yours. Without it payments still update, just within a few minutes instead of instantly.

  1. In Razorpay, open Account & Settings → Webhooks → Add new webhook.
  2. Copy the Webhook URL and the Secret from the ChatDesq Payments page and paste them into Razorpay.
  3. Tick these events: payment_link.paid, payment_link.expired, payment_link.cancelled, payment_link.partially_paid.
  4. Save.

The chip on the Payments page says Webhook: waiting for the first event until Razorpay sends one (when a link is paid, expires or is cancelled). Then it turns to Webhook: working.

4. Send yourself a test

The last setup step sends a ₹1 payment request to your own WhatsApp number. Send “hi” from your phone to your business number first, so the chat is open and the request arrives at once. In Test mode, pay on the checkout page by UPI with the ID success@razorpay, then watch the card turn Paid.

Replace keys or disconnect

  • Replace keys if you regenerated them in Razorpay. If the new keys are for a different Razorpay account, links made with the old account keep updating until they expire.
  • Disconnect asks what to do with open links: cancel them all, or keep them working until they expire. No new links can be made after you disconnect.

Stuck? Message us on WhatsApp from the Help menu in your dashboard, every day 10:00 to 19:00 IST, or book a free setup call.

Frequently asked questions

Do I have to add the webhook?

No, but it is better. Without it ChatDesq checks each open link on a schedule, so a payment shows within a few minutes instead of instantly.

Razorpay says my account is not activated for live payments.

Finish KYC in Razorpay first, or connect Test keys in the meantime to try everything without real money.

Can I use the same Razorpay keys for Commerce payment links?

Yes. Commerce order payment links use the Razorpay or Cashfree account you connect in Integrations → Payments.

Related articles

Still stuck? Email support or book a demo.

Get your costStart for free