dodo-payments-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Dodo Payments webhooks, which follow the Standard Webhooks specification. Use when setting up a Dodo Payments webhook endpoint, getting the…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Dodo Payments Webhooks
Dodo Payments is a merchant-of-record payments platform covering payments, refunds, disputes, subscriptions, invoices, license keys, entitlements, credits, dunning and payouts. It POSTs a signed JSON event to each endpoint you add under Developer > Webhooks. Signatures follow Standard Webhooks, so each delivery carries webhook-id, webhook-timestamp and webhook-signature headers.
When to Use This Skill
- How do I receive Dodo Payments webhooks?
- How do I verify a Dodo Payments webhook signature (
webhook-signature)? - Where do I find my Dodo Payments webhook secret (
whsec_...)? - How do I handle
payment.succeeded,refund.succeeded,dispute.openedorsubscription.activeevents? - Why is my Dodo Payments webhook verification failing, or failing only on retries and replays?
- Why does
dodo wh triggerfail signature verification? (Mock events are unsigned.)
Verification (core)
| Header | Value |
|---|---|
webhook-id |
Identifies the message; retries reuse it. Your idempotency key (the body has no event id) |
webhook-timestamp |
Unix seconds |
webhook-signature |
One or more space-separated v1,<base64> entries |
Signed content is {webhook-id}.{webhook-timestamp}.{raw body}, HMAC-SHA256, base64 output. The key is the base64-decoded part of the whsec_... secret after the prefix. Compare against every v1, entry; ignore other versions. If webhook-id is absent, read svix-id, svix-timestamp and svix-signature instead. The examples use the standardwebhooks library (npm and PyPI):
const { Webhook } = require('standardwebhooks');
// rawBody: exact request body (Buffer or string), NOT re-serialised JSON
function verifyDodo(rawBody, headers, secret = process.env.DODO_PAYMENTS_WEBHOOK_SECRET) {
const p = headers['webhook-id'] ? 'webhook' : 'svix'; // fall back to the svix-* names
new Webhook(secret).verify(rawBody, {
'webhook-id': headers[`${p}-id`],
'webhook-timestamp': headers[`${p}-timestamp`],
'webhook-signature': headers[`${p}-signature`],
}, { jsonParse: false }); // throws on a bad signature or stale timestamp → respond 401
}
The library always enforces a fixed 5-minute timestamp window. Hookdeck retries and replays resend the original webhook-timestamp, so the library rejects them once they are more than 5 minutes old. If you receive through Hookdeck and need late retries to pass, use the manual verifier in references/verification.md, which can drop or widen the window. In Express, read the body with express.raw({ type: '*/*' }) so any content type verifies, and parse JSON only after the check.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Event Type and Payload
Every body is the same envelope, and the event name is the top-level type:
{
"business_id": "bus_H4ekzPSlcg",
"type": "payment.succeeded",
"timestamp": "2024-01-15T10:30:00Z",
"data": { "payload_type": "Payment" }
}
timestamp is when the event occurred (ISO 8601). data.payload_type names the resource kind (Payment, Subscription, Refund, Dispute, LicenseKey, CreditLedgerEntry, CreditBalanceLow, AbandonedCheckout, DunningAttempt, EntitlementGrant, Payout or Invoice), not the event. The other data fields vary per event.
Common Event Types
| Event | Fired when |
|---|---|
payment.succeeded |
A payment completes |
payment.failed |
A payment attempt fails (declined card, insufficient funds, other errors) |
payment.processing |
A payment is being processed |
payment.cancelled |
A payment is cancelled |
refund.succeeded / refund.failed |
A refund completes or fails |
dispute.opened |
A cardholder opens a dispute on a payment |
dispute.won / dispute.lost |
The dispute is resolved in your favour / the cardholder's favour |
subscription.active |
A subscription becomes active |
subscription.renewed |
A subscription renews for the next billing period |
subscription.on_hold |
A subscription is temporarily put on hold due to a failed renewal |
subscription.cancelled |
The merchant or customer cancels a subscription |
license_key.created |
A new license key is created for a product |
These are the events the examples route. Dodo documents 56 in all (the list may not be exhaustive): more dispute (challenged, accepted, cancelled, expired) and subscription (updated, past_due, paused, unpaused, plan_changed, update_payment_method, failed, expired) events, plus invoice.* (invoice-based billing), credit.*, abandoned_checkout.*, dunning.*, entitlement_grant.* and payout.*. Ignore types you don't recognise. See [refere
Установить dodo-payments-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dodo-payments-webhooks?
Receive and verify Dodo Payments webhooks, which follow the Standard Webhooks specification. Use when setting up a Dodo Payments webhook endpoint, getting the whsec_ signing secret, debugging webhook-id / webhook-timestamp / webhook-signature verification, or handling events like payment.succeeded, payment.failed, refund.succeeded, dispute.opened, subscription.active and license_key.created.
Как установить скилл dodo-payments-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dodo-payments-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