---
title: Set up the Razorpay webhook
description: Add the Razorpay webhook URL, events and secret so WooCommerce orders, refunds and subscriptions stay in sync with SutraPay for Razorpay.
url: "https://sutraplugins.com/docs/sutrapay-for-razorpay/razorpay-webhook-setup/"
updated: "2026-11-17"
category: Guides
---

# Set up the Razorpay webhook

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.

1. Open **WooCommerce → SutraPay for Razorpay → Webhooks** and copy the **Webhook URL**.
2. In the Razorpay Dashboard go to **Account & Settings → Webhooks → Add New Webhook**, paste the URL and choose a secret.
3. Tick the events listed under **Active events** on the Webhooks screen.
4. Paste the same secret into **Webhook Secret** under Settings and save.
5. 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.
