Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

checkout-com-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and verify Checkout.com webhooks (checkout.com — the global payments processor: card acquiring, APMs, disputes, payouts, issuing). Use when setting up…

hookdeckот hookdeck★ 104 звезды на GitHub

Об этом скилле

Checkout.com Webhooks

Checkout.com (checkout.com) is a global payments processor. It sends webhooks for payments, disputes, fraud, payouts, issuing and identity verification.

This skill targets the current ("NAS" / Workflows) platform — webhooks configured under Dashboard → Developers → Webhooks, or created as a webhook action on POST https://{prefix}.api.checkout.com/workflows. See Legacy accounts if you are on the previous ("ABC") platform.

Canonical docs: Receive webhooks and Configure your webhook server → Validate the payload.

Not Checkout Page (checkoutpage.com), not CheckoutJoy, not 2Checkout / Verifone, not Stripe Checkout, not Shopify checkout webhooks. 2Checkout (now Verifone) in particular is a different company with an entirely different INS/IPN scheme — none of this applies there.

When to Use This Skill

  • How do I receive Checkout.com webhooks?
  • How do I verify a Checkout.com webhook signature?
  • Why is my Cko-Signature verification failing?
  • How do I handle payment_approved, payment_captured or payment_declined?
  • How do I handle dispute_received and the rest of the dispute lifecycle?
  • What is the Authorization header Checkout.com sends on my webhooks?
  • Does Checkout.com send a handshake or challenge request?
  • Why does created_on sometimes not exist on a Checkout.com event?

Two Optional Mechanisms, One That Proves Integrity

Checkout.com configures two independent, optional verification mechanisms per webhook. Implement both; check whichever you have a value for.

Cko-Signature — primary Authorization — optional
Header Cko-Signature Authorization
What it is HMAC-SHA256 of the raw body, hex (Base16) The configured key sent verbatim
Proves Sender identity and body integrity Sender knows a shared secret. Nothing about the body.
Configured as "signature key" (Dashboard) / actions[].signature.key (Workflows API) actions[].headers.Authorization
Env var here CHECKOUT_WEBHOOK_SIGNATURE_KEY CHECKOUT_WEBHOOK_AUTHORIZATION_KEY

Checkout.com, verbatim from Receive webhooks: "Checkout.com generates the HMAC by hashing the webhook payload using the key you provide in your workflow's webhook action, and then sends it in the hex-encoded (Base16) Cko-Signature header."

The Authorization key is a static bearer secret, not a signature — treat it as a complement to Cko-Signature, never a replacement. Checkout.com adds no Bearer or Basic prefix: whatever you configured is what arrives.

Users can also add arbitrary extra static headers ("Add new header" in the Dashboard). Nothing in this skill depends on them.

Verification (core)

Reference: Configure your webhook server → Validate the payload.

const crypto = require('crypto');

// Cko-Signature is HMAC-SHA256 of the RAW body, HEX-encoded (Base16).
// The bare digest: NO `sha256=` prefix, NO `t=`/timestamp, NO version tag,
// exactly ONE signature.
function verifyCkoSignature(rawBody, signatureHeader, signatureKey) {
  if (!signatureHeader || !signatureKey) return false;      // fail closed
  const expected = crypto
    .createHmac('sha256', signatureKey)  // key used AS-IS as UTF-8 — never hex/base64-decode it
    .update(rawBody)                     // RAW bytes — never re-serialized JSON
    .digest('hex');
  const a = Buffer.from(signatureHeader.trim().toLowerCase(), 'utf8');
  const b = Buffer.from(expected, 'utf8');
  return a.length === b.length && crypto.timingSafeEqual(a, b); // length guard FIRST
}

// Optional second mechanism: the configured key arrives VERBATIM in
// Authorization (no "Bearer " prefix). Only enforced when you configured one.
function verifyAuthorizationKey(header, expectedKey) {
  if (!expectedKey) return true;                            // not configured
  const a = Buffer.from(String(header || ''), 'utf8');
  const b = Buffer.from(expectedKey, 'utf8');
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Why manual HMAC and not an SDK

Checkout.com's official SDKs (checkout-sdk-node, checkout-sdk-python, …) manage workflows — they create and update webhook actions — but none of them ships a webhook-signature verification helper. There i

Полный SKILL.md на GitHub

Установить checkout-com-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

TODO.mdexamples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/checkout-com/route.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл checkout-com-webhooks?

Receive and verify Checkout.com webhooks (checkout.com — the global payments processor: card acquiring, APMs, disputes, payouts, issuing). Use when setting up a Checkout.com webhook handler, debugging Cko-Signature verification, or handling events like payment_approved, payment_captured, payment_declined, payment_refunded, dispute_received or fraud_reported. Checkout.com signs with HMAC-SHA256 over the RAW body, hex-encoded, in the Cko-Signature header, and can optionally send a static Authorization header key. Not Checkout Page (checkoutpage.com), not CheckoutJoy, not 2Checkout / Verifone, not Stripe Checkout, not Shopify checkout webhooks.

Как установить скилл checkout-com-webhooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл checkout-com-webhooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить checkout-com-webhooks с