I implemented Razorpay Webhooks on my client’s website and it was turning off automatically. I raised a support request to the Razorpay team and I got the logs from them to find out what exactly is blocking em.
I checked the firewall and found out “Bot fight mode” is causing the issue.
There is currently not a way to allow a specific bot through Bot Fight Mode with Firewall Rules. You will most likely have to either disable it or ask the provider to apply to Cloudflare to be counted as a ‘good’ bot.