---
url: /razorpay-acellemail/guides/going-live.md
description: >-
  Move from Razorpay test keys to live keys in Plugin Settings, set the
  production Webhook Secret and URL, and run a small real payment to confirm
  everything works.
---

# Going live

Going live with Razorpay in AcelleMail requires replacing test API keys with production credentials. The environment switches automatically based on the key prefix (`rzp_live_`).

## 1. Confirm the test flow first

Complete sandbox verification with `rzp_test_…` keys before switching to production:

* **Direct payment:** Process a test one-time transaction through the **Razorpay** gateway.
* **Subscriptions:** Complete a test recurring signup via the **Razorpay Subscription** gateway with mapped INR plans.
* **Webhooks:** Confirm test event delivery and signature validation.

## 2. Swap in your live keys

Navigate to **Admin → Plugins → Razorpay → Settings** and enter your production credentials:

* **API Key ID:** Your live key starting with `rzp_live_`.
* **API Key Secret:** The matching live secret key.

::: tip The prefix is the switch
As soon as the Key ID starts with `rzp_live_`, the plugin talks to Razorpay's live environment.
There's nothing else to enable.
:::

## 3. Set the production webhook

1. Open **Razorpay Dashboard → Settings → Webhooks** in Live mode.
2. Set the Webhook URL to:

```
https://YOUR_DOMAIN/cashier/razorpay/webhooks
```

3. Configure your production Webhook Secret.
4. Copy and paste the exact secret into **Webhook Secret** in AcelleMail Plugin Settings. See [Configure webhooks](/razorpay-acellemail/guides/configure-webhooks).

## 4. Re-save Settings

Click **Save Settings** so the live keys and webhook secret take effect and the license re-checks.

## 5. Run a small live payment

Perform a real, low-value transaction to verify end-to-end processing:

* Verify checkout redirection, payment capture, and status updates in AcelleMail.
* Confirm successful webhook delivery in the Razorpay dashboard.
* Refund the test transaction from the Razorpay dashboard if desired.

::: warning Live transactions incur charges
Transactions with `rzp_live_…` keys process real money. Use a minimal amount for the smoke test and refund it from the Razorpay dashboard upon completion.
:::

## Related pages

* [Get your API keys](/razorpay-acellemail/guides/get-api-keys) — test vs live key prefixes
* [Configure webhooks](/razorpay-acellemail/guides/configure-webhooks) — production URL and secret
* [Settings reference](/razorpay-acellemail/settings) — the Plugin Settings fields
* [Troubleshooting](/razorpay-acellemail/troubleshooting) — payments failing after go-live
