I enabled the webhook url in razorpay
But I didn’t understand how to get the data from webhook url when the payment is failed.
Give the best example to understand this concept
I’m fresher in aspdot.net coding.
2
You’ll need to set up the webhook in razorpay to send failed payment event. Click Edit on webhook details check the checkbox "payment.failed"
The webhook request will send ‘event’ with data ‘payment.failed’
Using Razorpay webhooks merchants can set up triggers to call their BE when an event like payment is failed, payment is captured, etc. happens.
On Razorpay Merchant dashboard webhooks can be set up by navigating to Settings > Webhooks. Here is detailed documentation for setting up Razorpay webhooks using dashboard & payload reference for the payment-failed event
Settings > Webhooks
Click here to cancel reply.
2
Answers
You’ll need to set up the webhook in razorpay to send failed payment event.
Click Edit on webhook details check the checkbox "payment.failed"
The webhook request will send ‘event’ with data ‘payment.failed’
Using Razorpay webhooks merchants can set up triggers to call their BE when an event like payment is failed, payment is captured, etc. happens.
On Razorpay Merchant dashboard webhooks can be set up by navigating to
Settings > Webhooks
. Here is detailed documentation for setting up Razorpay webhooks using dashboard & payload reference for the payment-failed event