Handles Stripe webhook verification and event processing with official SDK wrappers for Node and Python. Ships with complete examples for Express, Next.js, and FastAPI that show the full handler setup, not just verification snippets. The core pattern is simple: pass raw body and signature header to constructEvent, catch SignatureVerificationError, then switch on event type. Includes a table of common events like payment_intent.succeeded and customer.subscription.deleted. Built by Hookdeck, so it naturally pairs with their webhook-handler-patterns skill for idempotency and retry logic. If you're wiring up Stripe payments or subscriptions and need to stop guessing why signature verification fails, this gives you the working code.

skills.sh installs
601
GitHub stars
100
last updated
Aug 21, 2026

Install

$ npx -y skills add hookdeck/webhook-skills --skill stripe-webhooks --agent claude-code

Installs into .claude/skills of the current project.

Files

Stripe Webhooks

When to Use This Skill

  • Setting up Stripe webhook handlers
  • Debugging signature verification failures
  • Understanding Stripe event types and payloads
  • Handling payment, subscription, or invoice events

Verification (core)

Stripe ships official SDK helpers that verify the Stripe-Signature header (HMAC-SHA256 over timestamp.body) and parse the event in one call. Pass the raw request body — don't JSON.parse first.

Node:

const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY);

const event = stripe.webhooks.constructEvent(
  rawBody,                                  // Buffer or string of the raw HTTP body
  req.headers['stripe-signature'],
  process.env.STRIPE_WEBHOOK_SECRET         // whsec_… from the webhook endpoint settings
);
// Throws Stripe.errors.SignatureVerificationError on tampering or stale timestamp

Python:

import stripe

Sponsors

Details

Repository
github.com/hookdeck/webhook-skills
Categories
Debugging, Finance & Trading
First seen
Jun 3, 2026

More from hookdeck/webhook-skills

All 7

Recommended

More Debugging
1alirezarezvani avatarmonorepo-navigatoralirezarezvani/claude-skillsNavigate, manage, and optimize monorepos. Covers Turborepo, Nx, pnpm workspaces, and Lerna. Cross-package impact analysis, selective builds/tests on affected pa598skills.sh installs
2encoredev avatarencore-go-apiencoredev/skillsDefine typed API endpoints in Encore Go using `//encore:api` annotations. Covers typed request/response structs, path/query/header/cookie params, and error retu597skills.sh installs
3madteacher avatarflutter-navigationmadteacher/mad-agents-skillsImplement, fix, refactor, review, migrate, or validate Flutter navigation and routing. Use when working with Navigator, MaterialPageRoute, Router API, go_router596skills.sh installs
4netresearch avatarjira-syntaxnetresearch/jira-skillUse when writing or formatting Jira descriptions, comments, or any text destined for Jira. Converts Markdown to Jira wiki markup, provides templates (bug report596skills.sh installs
5mohitmishra786 avatarhardware-countersmohitmishra786/low-level-dev-skillsHardware performance counter skill for low-level CPU analysis. Use when collecting PMU events with perf stat, using the PAPI library, measuring cache miss rates590skills.sh installs
6wshaddix avatarmodern-csharp-coding-standardswshaddix/dotnet-skillsWrite modern, high-performance C# code using records, pattern matching, value objects, async/await, Span<T>/Memory<T>, and best-practice API design patterns. Em589skills.sh installs