Receives and verifies GoCardless webhooks with HMAC-SHA256 signature validation. Handles bank debit events like payments confirmed/failed, mandates cancelled, and payouts paid.
Ships in webhook-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
GoCardless is a bank debit / recurring payments platform. It sends webhooks as
batches of events (up to 250 per request) in an events array, signed with an
HMAC-SHA256 signature in the Webhook-Signature header.
Webhook-Signature header?payments confirmed/failed, mandates cancelled, or payouts paid events?events array idempotently?Webhook-Signature — a bare 64-char lowercase hex digest (no X-
prefix, no sha256= scheme prefix)204 No Content once the whole batch is accepted; a non-2xx
(e.g. 498) marks the delivery failed. GoCardless does not auto-retry —
redelivery is manual (POST /webhooks/{id}/actions/retry). Delivery is
at-least-once, so keep handlers idempotent on event.id.(Scheme verified 2026-08 against a live sandbox delivery and the official
gocardless-nodejs SDK; GoCardless's prose still doesn't name the algorithm.)
Always verify against the raw body — parsing JSON first and re-serializing will change the bytes and break the signature.
Use the official gocardless-nodejs SDK where it runs (Node.js). parse() verifies
the signature (timing-safe) and returns the events array, throwing
InvalidSignatureError when the signature does not match.
// Node.js — official SDK (gocardless-nodejs), req.body is the RAW Buffer
const { parse, InvalidSignatureError } = require('gocardless-nodejs/webhooks');
try {
const events = parse(
req.body, // raw body (Buffer/string), NOT parsed JSON
process.env.GOCARDLESS_WEBHOOK_SECRET, // webhook endpoint secret
req.headers['webhook-signature'] // Webhook-Signature header
);
// signature valid — process each event, then respond 204
} catch (err) {
if (err instanceof InvalidSignatureError) {
// signature mismatch — respond 498 (do not process)
}
}
For languages without a GoCardless SDK (e.g. Python/FastAPI), verify manually — same algorithm, timing-safe compare:
import hmac, hashlib
expected = hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
valid = hmac.compare_digest(expected, signature_header) # timing-safe
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
GoCardless events combine a resource_type with an action. The most common:
| resource_type | action | Triggered When |
|---|---|---|
payments | confirmed | Funds confirmed collected from the customer |
payments | paid_out | Payment included in a payout to your bank account |
payments | failed | Payment failed (e.g. insufficient funds) |
payments | cancelled | Payment cancelled before submission |
payments | charged_back | Customer charged the payment back |
mandates | active | Mandate set up and ready to collect |
mandates | customer_approval_granted | Customer authorised the mandate (confirmed live) |
mandates | cancelled | Mandate cancelled (e.g. bank account closed) |
mandates | failed | Mandate setup failed |
mandates | expired | Mandate expired through inactivity |
payouts | paid | Payout sent to your bank account |
refunds | paid | Refund submitted to the customer |
refunds | failed | Refund failed |
subscriptions | created | Subscription created |
subscriptions | cancelled | Subscription cancelled |
See overview.md for the full action list per resource type.
# Webhook endpoint secret from the GoCardless Dashboard (Developers → Webhook endpoints)
GOCARDLESS_WEBHOOK_SECRET=your_webhook_endpoint_secret
For local webhook testing, run the Hookdeck CLI via npx — no install required:
npx hookdeck-cli listen 3000 gocardless --path /webhooks/gocardless
No account required. The CLI creates a guest account on first run and provides a
local tunnel + web UI for inspecting requests. Use port 8000 for the FastAPI example.
We recommend installing the webhook-handler-patterns skill alongside this one. GoCardless doesn't auto-retry (redelivery is manual), but delivery is at-least-once, so idempotency matters. Key references (open on GitHub):
event.id)TODO.md (opens in a new tab)examples/express/README.md (opens in a new tab)examples/express/package.json (opens in a new tab)examples/express/src/index.js (opens in a new tab)examples/express/test/webhook.test.js (opens in a new tab)examples/fastapi/README.md (opens in a new tab)examples/fastapi/main.py (opens in a new tab)examples/fastapi/requirements.txt (opens in a new tab)examples/fastapi/test_webhook.py (opens in a new tab)examples/nextjs/README.md (opens in a new tab)examples/nextjs/app/layout.tsx (opens in a new tab)examples/nextjs/app/page.tsx (opens in a new tab)examples/nextjs/app/webhooks/gocardless/route.ts (opens in a new tab)examples/nextjs/next.config.js (opens in a new tab)examples/nextjs/package.json (opens in a new tab)examples/nextjs/test/webhook.test.ts (opens in a new tab)examples/nextjs/tsconfig.json (opens in a new tab)examples/nextjs/vitest.config.ts (opens in a new tab)references/overview.md (opens in a new tab)references/setup.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gocardless, webhook-verification, bank-debit, payment-webhooks
/webhook-skills:gocardless-webhooksfrom webhook-skills
npx claudepluginhub hookdeck/webhook-skills --plugin webhook-skills219 skills in this plugin
/ada-webhooksReceive and verify Ada (ada.cx) AI customer service webhooks, delivered through Svix. Use when setting up an Ada webhook endpoint, getting the per-endpoint whsec_ signing secret, debugging svix-id / svix-timestamp / svix-signature verification, or handling events like v1.conversation.created, v1.conversation.message, v1.conversation.ended, v1.conversation.handoff.ended, v1.end_user.created, v1.end_user.updated, v1.audit_log.emitted and v1.proactive_call.* voice outreach events.
/adyen-webhooksReceive and verify Adyen webhooks (standard notifications). Use when setting up Adyen webhook handlers, debugging HMAC signature verification, or handling payment events like AUTHORISATION, CAPTURE, REFUND, CANCELLATION, and CHARGEBACK.
/2 plugins in one repository ship this exact skill · first indexed Aug 29, 2026
Other plugins' skills for the same job