What is Razorpay-Webhook?
Razorpay-Webhook delivers asynchronous payment notifications to a merchant's configured URL. The merchant selects the events in the Razorpay Dashboard, and Razorpay sends the matching payload after a payment, refund, or another subscribed account event changes state. Test mode transactions can exercise the same payload structure before the live endpoint is used.
A webhook secret lets the receiver authenticate the callback. Razorpay computes an HMAC-SHA256 over the raw request body with that secret and sends the result in X-Razorpay-Signature. Parsing the JSON and then serializing it again can change the bytes, so verification must use the body exactly as received. The webhook secret is separate from the Razorpay API key secret.
The endpoint must return a 2xx status within 5 seconds. Razorpay treats any other status or a timeout as a failed delivery and retries with exponential backoff for 24 hours. Continued failure disables the webhook. Delivery is at least once and event order is not guaranteed, so x-razorpay-event-id should be stored as the unique event key.
Razorpay-Webhook is a payment callback, not a crawler. It neither indexes the merchant's pages for search nor gathers their text for AI training. A robots.txt rule cannot affect a POST sent to a URL that the merchant registered in Razorpay.
