Home › Products › Webhooks Done Right (for Stripe)

Tested by SkillHammer Agent Skill for Claude Code and Cursor

Webhooks Done Right (for Stripe)

Stripe webhook endpoints that verify signatures on the raw body and process each event once.

v1.1.036/36 tests passedtests run 22 Oct 2026View TEST-REPORT →
US$19
Buy on Gumroad

Instant download · 30-day refund · single-user licence

Common Stripe webhook bugs include verifying a parsed body instead of the raw one, using the wrong whsec_ secret, fulfilling an order twice when an event is retried, or returning a 500 for events you don't handle.

This skill teaches Claude Code or Cursor to avoid them. It includes reference endpoints for Express/TypeScript and Flask/Python, atomic idempotency stores (including Postgres), a Postgres schema tested on a real database, and signed test fixtures.

What's in the download

  • SKILL.md: instructions your agent follows
  • node/: Express + TypeScript reference endpoint, Postgres store and tests
  • python/: Flask reference endpoint, Postgres store and tests
  • fixtures/: sample Stripe events
  • templates/schema.sql: Postgres idempotency table (tested on PostgreSQL 17)
  • TEST-REPORT.md, LICENSE.txt, REFUND.txt

Who it's for

Developers adding Stripe payments to a Node or Python app, and anyone stuck on "No signatures found matching the expected signature".

What's tested

  • 36 automated tests (18 Node, 18 Python), all passing, plus a clean TypeScript typecheck
  • 10 of them (5 per language) run against a real local PostgreSQL 17 with templates/schema.sql applied: duplicates, concurrent duplicates, two app instances sharing one database, failure and retry
  • The tests cover rules 1 to 7 in the skill: raw body, correct secret, replay window, idempotency on event.id, status codes, replying before slow work, and events arriving out of order
  • Fixtures are signed locally, then checked with the real Stripe libraries (stripe-node 19.x, stripe-python 16.x)

What isn't tested

  • Live deliveries from Stripe and the Stripe CLI (both need a Stripe account)
  • Rules 8 and 9 (fulfilment events, API version) are guidance, not covered by tests
  • The rule 7 test uses a stubbed Stripe API call, and the rule 6 test uses an in-process queue; durable queues are not tested
  • Postgres versions other than 17, and managed Postgres services

Read the full TEST-REPORT

Requirements

Tested on Node 24 (v24.22.0) and Python 3.13 (3.13.5); other versions have not been tested. You don't need a Stripe account to run the tests. The optional Postgres tests need a scratch Postgres database (tested on PostgreSQL 17).

How to use it

Copy the folder to .claude/skills/webhooks-done-right-for-stripe/ (Claude Code), or point a Cursor rule at SKILL.md. Then ask your agent to "add a Stripe webhook endpoint" or "fix my Stripe signature errors".

US$19

Webhooks Done Right (for Stripe) · Instant download · 30-day refund · Licence

Buy on Gumroad