razorpay / razorpay-python

Razorpay Python SDK
https://pypi.python.org/pypi/razorpay
MIT License
154 stars 81 forks source link

How to handle webhook disable which occurs on many failures from client side? #286

Open Mahizha-N-S opened 1 month ago

Mahizha-N-S commented 1 month ago

HI i am working on razorpay -python backend where , i used webhook to handle the events: payment.created, failed, captured, refund.create. During test mode itself, on multiple failures the webhook automatically gets disabled , and the only way to enable is from the razorpay dashborad, but this means , due to a particular customer making webhook failure will affect the webhook while another customer right?

Is there a way to handle this in code These were the ways i saw in net and implemented :

  1. Valid-signature in webhook headers
  2. response is mostly of code = 2xx (eg:200)

And is the only way to enable is it by receiving the alert mail and manually enabling it in dashboard