Learn how to use webhooks to make your application react to events from Chargily Pay.
type
key in the payload indicates the type of event that occurred, checkout.paid
in the previous example which means that the event was triggered by a successfully paid checkout.
data:
The data
key in the payload contains the object related to the event, the object that triggered the event. In the previous example, the event object is a Checkout.
Verifying the signature
signature
, which is a HMAC of the payload signed with your API secret key.Identify the event
type
key that indicates the type of event that occurred, you can use it to identify the event and take the appropriate action.Handle the event
Respond with a 200 response
webhook_url
parameter when creating a checkout and we will use it as the endpoint URL for that checkout.