notifications.webhook parameter set, you’ll receive a notification each time a payment is completed. HandCash will send an HTTP POST request to the URL you specified.
Webhook Payload
Your endpoint will receive a POST request with the following JSON payload:Handling Webhooks
- Your server must return a
200status code once you have successfully processed the notification. - If HandCash doesn’t receive a
200response, it will retry with exponential backoff for 24 hours.
Security
To ensure the webhook is genuinely from HandCash:- Verify that the
appSecretin the webhook payload matches your app’s secret. - This confirmation ensures the HTTP call is invoked directly from HandCash to your service.
appSecret.
Best Practices
- Implement proper error handling in your webhook endpoint.
- Use HTTPS for your webhook URL to ensure secure communication.
- Consider implementing a queue system if you expect high volumes of webhooks.
- Log all received webhooks for debugging and auditing purposes.
- Implement idempotency to handle potential duplicate webhooks.

