Payments
Razorpay Webhooks
Indian payments platform. Receive events for payments, refunds, settlements, and subscriptions.
Connecting Razorpay to Hookbase
Create a source in Hookbase first — it gives you an ingest URL to paste into Razorpay. Then:
- 1Go to Razorpay Dashboard → Settings → Webhooks
- 2Click "Add New Webhook" and paste your Hookbase ingest URL
- 3Select the events you want to subscribe to
- 4Copy the webhook secret and add it to your Hookbase source
Signature verification
Set the source's provider to razorpay and paste the signing secret. Every request is checked before the event is stored, and anything that fails is rejected rather than quietly recorded.
- Algorithm
- HMAC-SHA256
- Header
- X-Razorpay-Signature
- Where to find the secret
- Razorpay Dashboard → Settings → Webhooks → Secret
Razorpay event types
8 of the events people route most often. Hookbase accepts every event Razorpay sends, whether or not it is listed here.
payment.authorized
A payment was authorized
payment.captured
A payment was captured
payment.failed
A payment failed
refund.created
A refund was initiated
refund.processed
A refund was processed
subscription.activated
A subscription was activated
subscription.charged
A subscription was charged
settlement.processed
A settlement was processed
What a Razorpay webhook looks like
A payment.captured payload. Hookbase stores the raw body exactly as it arrived, so this is also what you get back on a replay.
{
"entity": "event",
"account_id": "acc_1234567890",
"event": "payment.captured",
"contains": [
"payment"
],
"payload": {
"payment": {
"entity": {
"id": "pay_1234567890",
"amount": 50000,
"currency": "INR",
"status": "captured",
"method": "upi"
}
}
},
"created_at": 1678901234
}Start receiving Razorpay webhooks
Create a source, paste the URL into Razorpay, and watch the first event arrive. The free tier includes 1,000 events a month.
Get Started Free