A webhook is an HTTP callback that delivers an event — “payment.succeeded” — to the merchant’s server. It is the only trustworthy release trigger in a crypto checkout, because the browser redirect is user-controlled.

Why it matters

Webhook delivery is at-least-once, not exactly-once. Events can arrive twice, out of order or after a retry. A correct handler verifies the signature, deduplicates by event id, and treats the event as a state transition rather than a command to “grant now”.

How GaaPay handles it

GaaPay signs webhooks with HMAC-SHA256 over timestamp.body, retries failures seven times over about 32 hours with backoff, then parks them in a dead-letter queue that can be replayed. Delivery is at-least-once; ordering is not guaranteed, so each event carries a version.

Questions

Can I just use the success redirect?

No. The player controls the browser and can hit the return URL without paying. Verify the webhook; poll the query endpoint as a fallback.

What counts as a failed delivery?

Any non-2xx response or a timeout of about 10 seconds. Return 2xx only after the work is durable.

See it in a running checkout

The sandbox runs the same state machine: detected, confirmed, settled — and a webhook you can verify.

Open the sandbox