worldline-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Worldline webhooks from Worldline Connect (ex-Ingenico Connect / GlobalCollect) and Worldline Direct (ex-Ingenico/Ogone Direct). Use when…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Worldline Webhooks
Worldline SA (worldline.com) runs two card-acquiring e-commerce platforms that share one webhook scheme: the same signing, the same headers, the same JSON envelope.
- Worldline Connect (also called GlobalCollect; formerly Ingenico Connect): docs.connect.worldline-solutions.com
- Worldline Direct (formerly Ingenico Direct / Ogone Direct): docs.direct.worldline-solutions.com
The two platforms differ on event lists, endpoint activation and retry schedules. Every platform-specific fact below says which platform it belongs to. Ingenico is the old brand name. Many Connect SDK repos still live under github.com/Worldline-Global-Collect/, and older code uses com.ingenico.connect package names. The Ingenico terminal-hardware company (ingenico.com) is a separate business and has nothing to do with this.
Not covered here: Worldpay (a separate company with its own scheme), Worldline Sips (form-POST "automatic response" with a Seal field), Saferpay, Bambora / Worldline Nordics, Worldline ePayments for Switzerland, and Worldline's banking/ACS products. Their notification mechanisms are different.
When to Use This Skill
- How do I verify Worldline webhook signatures (
X-GCS-Signature)? - What is
X-GCS-KeyIdfor, and how do I handle webhooks key rotation? - Why is my Worldline Connect webhook endpoint "deactivated"? (the GET handshake failed)
- Why does every Worldline webhook return 401? (the body was parsed before hashing)
- Which secret verifies the webhook: the API key or the webhooks key? (the webhooks key)
- How do I handle
payment.paid,refund.refundedor Direct'spaymentlink.paid? - How do I spot Connect test webhooks? (the
idstarts withTEST)
Verification (core)
| Part | Value |
|---|---|
| Signature header | X-GCS-Signature: standard, padded base64 (not hex, not base64url) |
| Key id header | X-GCS-KeyId: which webhooks key signed the message |
| Algorithm | HMAC-SHA256 |
| Signed content | The raw request body bytes, nothing else: no timestamp, no URL, no headers |
| Key | The webhooks secret key for that key id. Not the REST API key |
const crypto = require('crypto');
// store: Map of webhooks key id -> secret key, seeded from env
function verifyWorldline(rawBody, headers, store) {
const signature = headers['x-gcs-signature'];
const secret = store.get(headers['x-gcs-keyid']); // unknown key id -> reject
if (!signature || !secret) return false;
const expected = crypto.createHmac('sha256', secret).update(rawBody).digest('base64');
const a = Buffer.from(signature);
const b = Buffer.from(expected);
return a.length === b.length && crypto.timingSafeEqual(a, b);
}
- Raw body only.
express.raw(),await request.text()(Next.js),await request.body()(FastAPI). Parsing and re-serialising the JSON changes the bytes. - Look up the secret by
X-GCS-KeyId. Connect signs with the oldest key on the account, so after you add a key, messages keep arriving under the old one. Reject an unknown key id with 401. Don't fall back to whichever secret you happen to have. - Fail closed. Missing secret, header or match:
401. There is no timestamp and no replay window: dedupe on the eventidinstead. - Empty bodies sign too. A correctly signed empty POST is still not an event: return
400. - Python:
base64.b64encode(hmac.new(secret.encode(), raw_body, hashlib.sha256).digest())+hmac.compare_digest. The official SDKs (connect-sdk-nodejs,onlinepayments-sdk-nodejs, and others) implement the same check. See references/verification.md.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Endpoint Activation: the Two Platforms Differ
- Connect sends an unsigned GET handshake, and you must answer it. When an endpoint is created (or re-activated), Connect sends
GETwith a random string inX-GCS-Webhooks-Endpoint-Verification. Respond200with only that value as atext/plainbody: no JSON, no quotes, no whitespace. If you don't, the endpoint is added as deactivated. Fix it, then use the endpoint's "activate" action. The GET has noX-GCS-Signature, so don't run the signature check on it. It carries no payload and changes nothing, so skipping the check there is not a fail-open hole. - Direct documents no GET handshake. Instead it has two REST calls:
ValidateWebhookCredentials(send your key and the base64 HMAC-SHA256 of the empty string) andSendTestWebhook(Worldline POSTs a dummy event to your URL). The examples answer the GET anyway. That does no harm, and one handler then works on both platforms.
Payload
{
"apiVersion": "v1",
"id"
Установить worldline-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл worldline-webhooks?
Receive and verify Worldline webhooks from Worldline Connect (ex-Ingenico Connect / GlobalCollect) and Worldline Direct (ex-Ingenico/Ogone Direct). Use when verifying the X-GCS-Signature header (base64 HMAC-SHA256 of the raw body) with the secret looked up by X-GCS-KeyId, answering the Connect X-GCS-Webhooks-Endpoint-Verification GET handshake, debugging signature mismatches or a "deactivated" endpoint, rotating webhooks keys, deduping retries on the event id, or handling payment.created, payment.captured, payment.paid, payment.rejected, refund.refunded, token.deleted, dispute.created and paymentlink.paid events. Not Worldpay, Worldline Sips, Saferpay or Bambora.
Как установить скилл worldline-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл worldline-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic