POST request to the webhook_url you provided when creating the checkout session. The request body contains a JSON payload describing the event, and the X-Taliup-Signature header lets you verify that the request genuinely came from Taliup.
Webhook payload
Every webhook Taliup sends has the following JSON structure:Signature verification
Every request from Taliup includes anX-Taliup-Signature header with the value:
Verification methods
The SDK provides two ways to verify a webhook:Complete webhook receiver example
Respond with HTTP
200 as quickly as possible. If your webhook endpoint takes too long to respond, Taliup may retry the delivery. Perform any heavy processing (e.g. sending a confirmation email) asynchronously after acknowledging the webhook.Status values
Thestatus field in the webhook payload indicates the payment outcome:
Idempotency
Taliup may deliver the same webhook more than once in rare retry scenarios. Use thetransaction_id field as an idempotency key — check whether you have already processed a transaction with that ID before taking action, and skip duplicate deliveries.