Skip to content

Stripe webhook receiving skill that verifies signatures and parses events with raw-body SDK helpers.

CCM score
49 of 100
skills.sh installs
613
GitHub stars
104
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers receiving and verifying Stripe webhooks, debugging signature failures, and handling payment, subscription, and invoice events
  • Shows constructEvent (Node) and construct_event (Python) usage with Stripe-Signature HMAC-SHA256 verification over the raw request body
  • Lists common event types such as payment_intent.succeeded, customer.subscription.created, and invoice.paid, with Express, Next.js, and FastAPI examples
  • Designed for developers wiring Stripe webhook handlers, with a local hookdeck-cli listen tunnel for development

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

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

Questions

What does the stripe-webhooks skill do?

The stripe-webhooks skill helps an agent receive and verify Stripe webhooks, using Stripe's official SDK helpers to check the Stripe-Signature header against the raw request body. It also covers handling payment, subscription and invoice events such as payment_intent.succeeded, customer.subscription.created and invoice.paid.

How do I install the stripe-webhooks skill?

Run npx -y skills add hookdeck/webhook-skills --skill stripe-webhooks -y in your project. This lets your agent verify Stripe webhook signatures and handle the common Stripe event types.

What does stripe-webhooks need to run?

It needs a STRIPE_SECRET_KEY and a STRIPE_WEBHOOK_SECRET, the whsec_ value from your webhook endpoint settings in the Stripe dashboard. Local testing uses the Hookdeck CLI through npx hookdeck-cli listen, which needs no account.

Where does stripe-webhooks stand in the Backend & APIs category?

It is listed in the Backend & APIs category alongside entra-app-registration, neon, firebase-basics and firebase-auth-basics. It is the skill to reach for when your Stripe payment, subscription or invoice events need verified handling.

Can stripe-webhooks help me debug signature verification errors?

Yes, it covers debugging Stripe signature verification failures, including tampering and stale timestamp errors. It shows passing the raw request body rather than parsed JSON to the verification helper.

More from hookdeck/webhook-skills

All 7

Similar to Stripe Webhooks

More Backend & APIs