Open the free webhook tester →
Checkout.com notifies you about payments and disputes with signed webhooks. Capture them on a free URL, read the event type and payload, and check the Cko-Signature with your secret key.
Test Checkout.com webhooks in 4 steps
- Open the webhook tester and copy your URL.
- In the Checkout.com Dashboard (sandbox) add a webhook endpoint with that URL and choose the events. Note the signature secret key.
- Make a sandbox payment with a test card.
- Paste the secret key into the tester and press Verify signature.
How Checkout.com signs webhooks
| Signature header | Cko-Signature |
|---|---|
| Signed string | the raw body |
| Algorithm | HMAC-SHA256 with the endpoint's secret key, hex |
| Extra check | an optional Authorization header with the key you configured |
// Node.js
const mac = crypto.createHmac('sha256', CKO_SECRET).update(rawBody).digest('hex');
const ok = crypto.timingSafeEqual(Buffer.from(mac), Buffer.from(req.get('Cko-Signature') || ''));
Events worth testing
payment_approved,payment_declined— the authorisation result (check the response code against decline codes).payment_captured,payment_refunded,payment_voided.dispute_received,dispute_won,dispute_lost— see Visa 10.4 and 13.1 for the evidence to send.
Common problems
- Signature mismatch: verify the raw body bytes; a re-serialised JSON body has different spacing.
- Retries and duplicates: failed deliveries are retried — make your handler idempotent on the event
id. - Order:
payment_capturedcan arrive before you storedpayment_approved; handle both orders.