← Your booking pages

Connect Razorpay to your booking page

Customers in India paying by UPI, cards, netbanking or wallets, in rupees. About 15 minutes for test payments; going live depends on Razorpay's account checks. No coding needed.

← All payment providers

Your customers can pay with

UPI, Indian and international cards, netbanking and wallets. Paid in INR.

Before you start

  • An email and mobile number for the Razorpay account.
  • For real payments later: PAN, business details and an Indian bank account (Razorpay's KYC).

Part 1: connect in test mode (no real money)

  1. Create a Razorpay account

    Sign up with your email and mobile number. Test mode works before your KYC is done.

    Open Razorpay sign-up ↗
  2. Switch to Test Mode

    Use the mode switch at the top of the Razorpay dashboard and pick Test Mode.

  3. Generate API keys

    Go to Account & Settings, then API Keys, and click Generate Key. Copy the Key Id (starts rzp_test_) and the Key Secret. The secret is shown only once, so download it too.

    Razorpay: generate API keys ↗
  4. Paste both into b59 book

    On your booking pages, open Payment accounts, choose Razorpay and paste the Key Id and Key Secret. Leave the webhook secret empty: we make one and show it to you once. Copy it.

  5. Add the webhook in Razorpay

    In Razorpay go to Account & Settings, then Webhooks, and click Add New Webhook. Paste the webhook address b59 book shows you, paste the secret we showed you, tick the events payment.captured and order.paid, and save. This is how we learn a booking is paid.

    Razorpay: set up webhooks ↗

Part 2: try a test booking

In Test Mode, book a paid plan on your own page and pay with UPI id success@razorpay, or a test card from Razorpay's list. The booking should show as confirmed within a minute.

Part 3: go live

  1. Finish Razorpay's KYC

    In the dashboard, complete account activation (PAN, business and bank details). Razorpay reviews it, often in 1 to 3 working days.

    Razorpay: account set-up ↗
  2. Generate live keys

    Switch to Live Mode, then Account & Settings, API Keys, Generate Key. The Key Id starts rzp_live_.

  3. Replace the keys in b59 book

    Paste the live Key Id and Key Secret in the same place, and copy the new webhook secret we show you.

  4. Add the webhook again in Live Mode

    Live and test webhooks are separate in Razorpay. Add the same address, the new secret and the same two events in Live Mode.

If something goes wrong

Paid, but the booking still says it is waiting
The webhook is missing or its secret differs. Check the address, the secret and both events in Razorpay's Webhooks, in the same mode (test or live) as your keys.
"Razorpay needs a key id starting rzp_live_ or rzp_test_"
Copy the Key Id from API Keys, not your merchant id or account number.
Lost the webhook secret
Replace the keys in b59 book to get a new one, then edit the webhook in Razorpay with it.

Razorpay's own help

Go to your booking pages