stripe

Integrate Stripe payments and sync entities into a PostgreSQL stripe schema.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/Celia-12/Proyecto-Mern --skill stripe-celia-12
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stripe
Source: https://github.com/Celia-12/Proyecto-Mern/tree/main/frontend/.local/skills/stripe
Command: npx skills add https://github.com/Celia-12/Proyecto-Mern --skill stripe-celia-12

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Frequently Asked Questions about stripe

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Stripe webhooks in an Express API without signature verification failing?

Stripe webhook signature verification fails when JSON parsing alters the raw payload. Register the webhook route before express.json middleware and use express.raw to preserve the original body for signature verification.

How do I sync Stripe products and prices into a PostgreSQL database?

To sync Stripe products and prices into PostgreSQL, run runMigrations to create the stripe schema, then execute syncBackfill via stripe-replit-sync to populate local tables from your Stripe account for reliable local reads.

Why do I need a local PostgreSQL schema if I can query the Stripe API directly?

A local PostgreSQL stripe schema provides reliable local reads without hitting Stripe API rate limits or latency. Syncing entities locally via stripe-replit-sync allows faster application queries and prevents duplicate product storage issues.

What is the correct order of middleware for Stripe checkout and webhook routes in Node.js?

The correct middleware order for Stripe in Node.js is registering the webhook route with express.raw before adding express.json middleware. This ensures the raw body is available for webhook signature verification while JSON parsing applies to other routes.

Do I need to run seed scripts before or after Stripe schema migrations?

Run Stripe schema migrations first to create the local PostgreSQL stripe schema, then run seed-products scripts to create products and prices via the Stripe API, followed by syncBackfill to populate the local database from Stripe.

Can I use this Stripe integration approach without a PostgreSQL database?

No, this Stripe integration approach requires a PostgreSQL database to store synchronized Stripe entities in a dedicated stripe schema. The runMigrations and syncBackfill steps depend on PostgreSQL for reliable local reads and webhook data management.