What problem does it solve?
Provides clear, production-focused guidance to integrate Stripe payments into a Node/Express backend and synchronize Stripe entities into a PostgreSQL database, preventing common pitfalls like incorrect webhook middleware ordering, missing migrations, duplicate product storage, and unsynced data.
Core Features & Use Cases
- Managed Webhooks & Ordering: Explains registering the webhook route before JSON parsing and using express.raw to preserve the raw payload for signature verification.
- Schema Migrations & Backfill: Details running runMigrations and syncBackfill via stripe-replit-sync to create the stripe schema and populate it from Stripe.
- API Patterns & Seed Scripts: Includes templates for storage queries, seed-products scripts to create products/prices via the Stripe API, and routes for checkout, products, and subscription flows.
Quick Start
Use the stripe skill to configure Stripe credentials, ensure a PostgreSQL database exists, run migrations, register the webhook route before JSON parsing, and run the provided seed and backfill steps to populate the local stripe schema.