BooDoo

Taking payments

Connect Razorpay to your app

What is Razorpay?

Razorpay is an Indian payments company. It lets your app take payments by UPI, card and netbanking.

What it costs
Creating an account and test keys is free. Razorpay takes a small fee from each real payment.
Time needed
About 10 minutes for test keys. Real (live) keys need Razorpay to check your website first, which can take a few working days.
If you skip it
Your app still works. Only taking payments stays off until you connect it.

What you can build with Razorpay

How to get it, step by step

Create your keys

  1. Sign in to the Razorpay Dashboard (dashboard.razorpay.com). You need to be the owner or an admin of the account.
  2. Choose Test mode to start. Switch to Live mode once Razorpay has approved your website.
  3. Go to Account & Settings, then API Keys (under Website and app settings), then Generate Key.
  4. Download or copy both the Key Id and the Key Secret straight away — the Key Secret is not shown again.

Set up payment notices (webhook)

  1. In Accounts & Settings, under Website and app settings, press Webhooks, then + Add New Webhook.
  2. For URL, ask BooDoo in the chat for your app’s payment-notice address and paste it.
  3. For Secret, make up a long password of your own and write it down.
  4. Under Active Events, tick payment.captured (and any others BooDoo asked for), then press Create Webhook.

Which value goes in which box

Key IdRAZORPAY_KEY_IDNot secret
The Key Id. It starts with rzp_test_ in Test mode and rzp_live_ in Live mode. An “account ID” like this says whose account it is; it is not secret on its own.
Key SecretRAZORPAY_KEY_SECRETKeep private
The Key Secret. It is shown only once. This one is secret.
Webhook secretRAZORPAY_WEBHOOK_SECRETKeep private
The password you made up for Secret — Razorpay does not create it for you. Use a different one from your Key Secret.

Watch out for

  • Test keys (rzp_test_) cannot take real money. When you go live, you get a new pair (rzp_live_) and must save those too.
  • The Key Secret is secret. Keep it private, like a password.
  • Making new keys stops the old ones, so update BooDoo the same day.