Register your webhook URLs
Webhooks are currently registered when you call APIs via thecallbackUrl field.
Webhook Structure
All webhooks have the same payload structure.event: the name of the eventdata: event data specific to the event being sent
Webhook Retries
Always acknowledge a webhook instantly by responding with2xx, else it will be considered as failed. Failed webhooks are retried with constant backoff for a maximum of 3 times with a delay of 1 minute.
Webhook Security
To ensure you are receiving webhooks from Paycashless we provideRequest-Signature and Request-Timestamp in the webhook request header.
This is similar to the API signing request, but in reverse. You MUST validate the signature to ensure it’s originating from Paycashless.
Webhook signature is signed using HMAC SHA-512 with your API secret as the signing key. Request-Signature and Request-Timestamp will be provided in the webhook request header for you to reconstruct the message for verification.
To verify the signature follow the process below:
The fields used to generate the signature are as follows. If the conditions below are not met, you won’t be able to recreate the
Request-Signature header.
Study the node.js webhook verification example code below:
verify_webhook_signature.js