Guides · SaaS

Razorpay test mode to live: a go-live checklist for developers.

What changes when you move Razorpay from test to live: keys, webhooks, KYC, amounts, refunds and failure testing. A practical go-live checklist.

Key takeaways

  • Test and live modes have separate keys, separate data and separate webhook settings.
  • Account activation (KYC) must be complete before live payments work. Start that early.
  • Test failures as well as successes before you go live.
  • After launch, make one small real payment yourself and check it end to end.

Two separate worlds

Razorpay gives you different API keys for test and live. Orders, payments and webhooks created in one mode do not exist in the other. This is useful, because you can try anything in test without moving money, but it means every setting must be repeated for live.

Before you go live

Account and activation

  • Complete the activation and KYC steps in the dashboard. Requirements depend on your business type, and the dashboard explains what is needed.
  • Check which payment methods are enabled for your account.
  • Confirm settlement details are correct.

Configuration

  • Create live keys and store them only in the production .env.
  • Never commit keys to Git. If a secret leaked, regenerate it.
  • Register your live webhook URL and generate a webhook secret for it. The test webhook does not apply.
  • Select only the events you handle, such as payment.captured and payment.failed.

Code review

  • Amount is computed server side, in paise.
  • Signature verification is on, with no test bypass left in the code.
  • Payment handling is idempotent.
  • Environment-specific code reads from config, not hard-coded values.

Test the unhappy paths in test mode

  • A payment that fails.
  • The customer closing the window mid-payment.
  • A repeated webhook delivery.
  • A webhook arriving before the browser callback, and after it.
  • A partial or full refund.
  • A very small and a very large amount.

Razorpay documents test card and UPI details for these cases. Use those instead of real instruments.

Go-live day

  1. Switch keys and webhook secrets in production config. Clear config cache.
  2. Check the site uses HTTPS.
  3. Make a small real payment with your own account.
  4. Confirm the order moved to paid, the receipt or email was sent and the webhook arrived.
  5. Refund that payment and check the refund flow too.
  6. Watch logs for the first few hours.

After launch

  • Reconcile your database against the Razorpay dashboard regularly, especially at first.
  • Alert on webhook failures and on orders stuck in "created".
  • Keep a way to retry a payment confirmation by hand.
  • Keep legal pages ready: terms, privacy policy and refund policy. Payment providers may ask for them.

Be honest about the state of your system

If a product is still in test mode, say so on the page. For example, I label my own booking SaaS work as in development rather than implying live payments. Customers trust honest pages more than polished ones.

Frequently asked questions

Can I test live mode without paying?

Not without moving real money. Use a small amount yourself and refund it.

Why does my webhook work in test but not live?

Usually the live webhook URL or secret was not set, or the endpoint is blocked by a firewall or a redirect from http to https.

Do I need to change code for live?

Ideally only configuration. If you need code changes, the integration is too tightly tied to test values.

I build payment flows and say plainly what is still in test mode.

See Zentry