The webhook keeps WooCommerce orders and subscriptions in sync with what happens in Razorpay: payments, refunds made in the Razorpay Dashboard, subscription renewals, failed charges and cancellations.
- Open WooCommerce → SutraPay for Razorpay → Webhooks and copy the Webhook URL.
- In the Razorpay Dashboard go to Account & Settings → Webhooks → Add New Webhook, paste the URL and choose a secret.
- Tick the events listed under Active events on the Webhooks screen.
- Paste the same secret into Webhook Secret under Settings and save.
- Repeat in the Razorpay Dashboard for Live mode (test and live webhooks are set up separately).
Webhooks without a valid signature (HMAC-SHA256) are rejected, and each event is handled once. The Webhooks screen shows the last event received and recent events. Without a webhook, renewals and Dashboard refunds are only picked up by the plugin’s regular background check, so set it up before going live.

