Skip to main content
Pass a publicly reachable HTTPS webhook_url when you create a checkout session or request a withdrawal. Paysum sends a JSON POST when the resource changes state. Return a 2xx response within 10 seconds.

Payload

The body contains event, data, and created. The data object describes the session or withdrawal that changed.

Verifying signatures

Find your store’s Webhook signing secret under Integrations → API keys. Keep it on your server. The x-webhook-signature header uses t=<unix seconds>,v1=<hex>. Paysum computes v1 with HMAC-SHA256 over the timestamp, a dot, and the exact raw body bytes. During the 24-hour period after rotation, the header can have two v1 values. Accept a match against either value.
Pass the raw request body as a Buffer, before you parse the JSON. After verification, use the event name and resource ID to prevent duplicate processing.
Do not use the legacy X-Swiftly-Signature header to verify a webhook. Use x-webhook-signature.
For requests that must return goods to the buyer, see Dynamic delivery.