Setup
- Environment variables
- Direct config
How it works
item_id maps to that plan’s plan_id:
Webhooks
Razorpay signs webhooks with a webhook secret you configure separately in the Razorpay dashboard — it’s not the same as your API key secret.x-razorpay-signature header:
HMAC-SHA256(webhookSecret, rawRequestBody).
Raw Razorpay events
Opt into any native Razorpay event — fully typed against Razorpay’s webhook payload shape:
Razorpay has no delete-customer API and no cancel-payment API — use
createRefund to reverse a captured payment instead of canceling it.