A webhook notification gives you details about a specific event that has taken place in your gateway. Instead of having to ask the API if an event has occurred, a webhook can notify an endpoint on your server automatically.
You’ll need to develop a workflow that determines what your server does with this information. For example, if a customer’s subscription has expired, you could set up your server to send an email to your customer reminding them to renew their subscription.
- Log into the Control Panel
- Navigate to Settings > Webhooks
- Click Create a webhook
Here, you'll need to provide a destination URL, choose which kind of webhook you want to create, and set up your server to parse this webhook. To learn more, head over to our developer docs.
Once you’ve set up a webhook, you can send a test webhook to make sure your endpoint is configured correctly. To do this, click Check URL in the Control Panel under Settings > Webhooks.
Be careful when using this button in production- if your webhook handling code doesn’t look for the kind of webhooks it receives, this could lead to unexpected behavior.