Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides framework-specific raw body parsing fixes and subscription field corrections for Stripe webhook signature verification errors.
82% 100%+18 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 18 of 22 without it.
What exact Stripe CLI command forwards incoming Stripe webhook events to a local development server running at http://localhost:3000/api/v1/webhooks/stripe?
Uses the exact command stripe listen --forward-to localhost:3000/api/v1/webhooks/stripe
3 of 3 safety checks passed
Stripe webhooks require raw request bodies for signature verification. Most web frameworks parse JSON automatically, breaking verification. This skill provides framework-specific solutions for the raw body problem and documents common TypeScript type mismatches.
Use this skill when:
TypeError: Cannot read property 'current_period_start' from subscription eventsDon't use for:
| Problem | Solution |
|---|---|
| Raw body not available | Configure custom body parser (see framework examples) |
| Signature verification fails | Use raw body bytes/buffer, not parsed JSON |
| 404 on webhook endpoint | Register webhook route inside API prefix |
current_period_start undefined | Access from subscription.items.data[0] not root |
| URI validation errors | URL-encode dynamic parameters with encodeURIComponent() |
THE PROBLEM: Stripe's constructEvent() requires the exact bytes received to verify the signature. JSON parsing modifies the body, breaking verification.
THE SOLUTION: Access raw body before any parsing middleware.
Node.js - Fastify (most common for new projects):
Next to this one in the catalogue, plus more from the same author.