Skip to content

Connect Razorpay

Razorpay gives you the widest method coverage of any RelyPay provider — UPI, Cards, Net Banking, Wallets, Pay Later, EMI and PayPal. This guide walks through connecting it on the Addons → RelyPay → Providers page.

The Razorpay configuration card in RelyPayAddons → RelyPay → Providers → Razorpay

Credentials you will need

On the Razorpay card, fill in these fields exactly:

FieldWhere to find it
Key IDFrom Razorpay Dashboard → Settings → API Keys
Key SecretGenerated with the Key ID
Webhook SecretFrom Razorpay Dashboard → Settings → Webhooks

Generate your API keys in the Razorpay Dashboard first, then copy the Key ID and Key Secret into RelyPay. You will create the Webhook Secret in the next step, when you register the webhook.

Payment Action

  • Payment Action — choose Capture (Auto) or Authorize Only. Capture = auto-capture, Authorize = manual capture.

Leave this on Capture (Auto) unless you specifically want to authorise a card at checkout and capture the funds later yourself. Most stores want auto-capture so paid invoices settle immediately.

Register the webhook

  1. On the Razorpay card in RelyPay, copy the webhook URL shown.
  2. In Razorpay Dashboard → Settings → Webhooks, add a new webhook and paste that URL.
  3. Set a secret on the webhook, then copy it back into the Webhook Secret field in RelyPay so callbacks can be verified.
  4. Subscribe to these events:
EventRequired?
payment.capturedRequired
order.paidRequired
payment.authorizedOptional
payment.failedOptional

SSL required

The webhook URL must be HTTPS. Razorpay will not deliver events to an insecure endpoint, and RelyPay verifies each callback's signature against your Webhook Secret.

Test mode

Razorpay provides separate Test and Live API credentials:

  • Sandbox testing: Enter test-mode Key ID and Secret during staging.
  • Production cutover: Replace with live keys and update your Webhook Secret when accepting real payments.

Test it

  1. Click Test Connection on the Razorpay card to confirm your keys reach Razorpay.
  2. Enable Razorpay and save.
  3. Place a test payment through a RelyPay sub-gateway that Razorpay can serve, and confirm the result appears in the transaction log with Razorpay as the provider.

Documentation for the Relyweb app catalogue.