Webhooks and APIIntegrations

Razorpay

Receive Razorpay payment events

Razorpay signs webhooks with HMAC-SHA256 in X-Razorpay-Signature (hex). You connect it with the Razorpay preset, which uses Generic HMAC SHA-256.

Provider docs: Setting up webhooks in Razorpay

Setup

1. Connect It in Wexio

Go to New connection → Inbound. Under Provider presets, click the Razorpay chip in HMAC presets. It sets Authentication mode to Generic HMAC SHA-256 and fills in these fields. Check that they match.

FieldValue
Signature header nameX-Razorpay-Signature
EncodingHex
Header prefix (optional)Leave empty

Copy the Wexio endpoint URL.

2. Set Up the Provider

In the Razorpay dashboard, go to Settings → Webhooks → Add New Webhook. Paste the Wexio URL and pick the events you need, for example payment.captured or subscription.charged.

Razorpay asks you to set a Webhook Secret at creation. Pick a strong value and paste the same value into the Wexio Signing secret field.

3. Resolve Contacts

Identifier typeJSON path
Email$.payload.payment.entity.email
Phone number$.payload.payment.entity.contact

4. Capture the Schema and Bind a Flow

Capture a test event, then attach a Webhook Received trigger.

Troubleshooting

SymptomFix
Signature mismatchMake sure the secret is identical in Razorpay and Wexio. You set it yourself
Missing eventsCheck the "Active Events" list on Razorpay's webhook page

Was this page helpful?

On this page