Подключение вебхуков Stripe без ошибок верификации
★ 8.0 · vibe-coding
integrating-stripe-webhooks is a Claude Code skill that fixes the most common Stripe webhook integration failures: "Raw body not available" errors and signature verification breakdowns caused by framework JSON parsers. It provides ready-to-use raw body parsing patterns for Fastify (storing a Buffer in `req.rawBody` before route registration), Express (using `express.raw()` before `express.json()`), and FastAPI (reading `await request.body()` instead of `.json()`). The skill also covers the `current_period_start` TypeError — the field lives in `subscription.items.data[0]`, not at the subscription root — and fixes 404 errors from webhook routes registered outside an API prefix. URL-encoding dynamic checkout parameters with `encodeURIComponent()` is included as well. Use it whenever webhook endpoints return 400 or 404, or TypeScript raises type errors on subscription period fields.