webhook-implementation
Installation
SKILL.md
Webhook Implementation
Builds robust Stripe webhook handlers. Match the project's stack or ask users (Next.js route, Express, Supabase edge function).
Must-haves
- Raw body for signature verification (no JSON pre-parse)
stripe.webhooks.constructEvent(body, sig, secret)- Idempotency -- dedupe by
event.id(store processed IDs) - Return
200fast; heavy work async - Handle only subscribed events; ignore rest gracefully