Example with Node.js
For this example, we'll use the express
framework to create a simple webhook server.
Make sure you have Node.js installed, we recommend using the latest LTS version (as of this writing, it's v22.15.0
).
Create a basic express
server
Verify the webhook payload
Handle verified webhook payload
Start receiving webhook events
After you've implemented the webhook handler, make sure to deploy it somewhere and set up a webhook endpoint URL in the Merchant Panel to start receiving events from us.
Ensure the endpoint is publicly accessible and properly configured.