What problem does it solve?
Stripe integrations are easy to start but hard to do correctly—especially handling webhooks, syncing Stripe data into a database, and avoiding duplicate or unsafe storage patterns.
Core Features & Use Cases
- Replit-compatible Stripe integration: Uses the Stripe SDK plus stripe-replit-sync to manage webhook processing and keep local PostgreSQL data synchronized with Stripe.
- Safe initialization workflow: Ensures migrations run before StripeSync, configures managed webhooks in the correct order, and performs a backfill to populate existing data.
- Database-backed reads, Stripe-backed writes: Creates products/prices via Stripe API scripts and reads from the synced PostgreSQL stripe schema to avoid maintaining duplicate source-of-truth tables.
- Use Case: Implement subscriptions with a checkout endpoint, list products/prices for a frontend, and reliably persist customer/subscription references in application tables.
Quick Start
Use the stripe skill to integrate payments by creating your stripeClient.ts, running Stripe migrations on startup, registering the /api/stripe/webhook raw route before JSON middleware, and wiring checkout/product routes to read from the synced stripe schema.