Example with PHP
For this example, we'll set up a basic PHP server to handle webhook events from Swipelux.
Make sure you have Composer installed as we'll use it to install the required dependencies.
Create a new index.php
file
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.