
php file on your server with a Ruby framework like Sinatra, you would add a new route with the desired URL. Creating a webhook endpoint on your server is no different from creating any page on your website. The first step to adding webhooks to your Pay on Rails integration is to build your own custom endpoint.


#What's a Webhook?Ī webhook (also called a web callback or HTTP push API) is a way for an app to provide other applications with real-time information. Webhooks are particularly useful for asynchronous events like when a new deposit is created or a withdrawal has been succeeded. Pay on Rails uses webhooks to notify your application when an event happens in any of your clients' accounts.
#DOES WEBOOK PAY FREE#
For business-critical, synchronous use cases, please poll our APIs.Warning! work in progess, in case of any questions please feel free to contact us #Receive event notifications with webhooks #Listen for events on your client's accounts so your integration can automatically trigger reactions. While we try to send them promptly, we do not recommend relying on Webhooks for events that are time-sensitive.

However, this can be delayed by a few minutes in some cases due to various reasons. Usually, webhook events are delivered within a few seconds of the associated event. You can then further analyse this payment and notify your customer about the failure. Suppose you have enabled the payment.failed webhook, you will receive a notification from us about the failed payment. This payment gets recorded in our system as Failed. When a payment attempted by your customer fails, we receive the failed payment status from the bank. You can use webhooks to get notified about payments that get authorised and analyse this data to decide whether or not to capture the payment. Know more about late authorisation of payments. This could lead to a payment being marked as Failed on the Razorpay Dashboard but changed to Authorized at a later time. This could be because of a slow network connection or your customer closing the window while processing the payment. Sometimes, the communication between the bank and Razorpay or between you and Razorpay may not occur. Capturing Late Authorized Payments ðŸ”-Ĭapturing payments for which you did not receive a response on the client-side is perhaps the most important use case for the thorized event. There can be multiple uses for webhook events.
