Overview
Credibill uses webhooks to notify your application when an event happens in your account. Webhooks are particularly useful for asynchronous events like when a customer’s bank confirms a payment, a customer disputes a charge, or a recurring payment succeeds.Configuring Webhooks
- Go to the Webhooks section in your Dashboard.
- Click Add Endpoint.
- Enter the URL of your server endpoint (e.g.,
https://api.myapp.com/webhooks/credibill). - Select the events you want to listen to.
Event Structure
Every webhook event payload has a consistent structure.Verifying Signatures
Credibill signs the webhook events it sends to your endpoints by including a signature in each event’sX-Credibill-Signature header. This allows you to verify that the events were sent by Credibill, not by a third party.
Node.js Example
We recommend using the official SDKs to verify signatures as they handle the cryptographic complexity for you.