stripe

Integrate Stripe payments into Replit apps with webhook sync and PostgreSQL storage.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/AmirEmad11/instabot --skill stripe-amiremad11
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stripe
Source: https://github.com/AmirEmad11/instabot/tree/main/.local/skills/stripe
Command: npx skills add https://github.com/AmirEmad11/instabot --skill stripe-amiremad11

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires stripe, stripe-replit-sync, and includes references (resource) components.

What problem does it solve? Setting up Stripe payments involves coordinating API credentials, webhook handling, database synchronization, and product management, which is error-prone when done manually. This Skill provides a step-by-step implementation guide with ready-made code templates for integrating Stripe into Replit applications. ## Core Features & Use Cases - Guided Initial Setup: Walks through database schema creation, webhook handler registration, Stripe initialization order (migrations, managed webhooks, backfill sync), and route configuration using Express. - Code Templates: Provides complete templates for stripeClient.ts, webhookHandlers.ts, storage.ts, stripeService.ts, routes, and a seed-products script via the references directory. - Data Architecture Rules: Enforces the pattern of querying Stripe data from the auto-synced stripe PostgreSQL schema instead of duplicating products, prices, or customers in application tables. - Use Case: A user building a subscription SaaS app on Replit asks to add a Pro Plan at $29/month. The Skill guides creating the product via a seed script, syncing it to PostgreSQL through stripe-replit-sync webhooks, and exposing checkout and product routes. ## Quick Start Set up Stripe payments in my app with a Pro Plan subscription product and a checkout endpoint.

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 payments in a Replit app?

Install the stripe and stripe-replit-sync packages in the workspace root, connect the Stripe integration, and ensure a PostgreSQL database exists. Then create stripeClient.ts from the template, register the webhook route before express.json(), and run migrations plus syncBackfill on startup.

How do I create Stripe products and prices with a script?

Write a seed script that calls stripe.products.create() and stripe.prices.create() using the authenticated client from getUncachableStripeClient(). Run it manually in development, and managed webhooks automatically sync the created data to the local stripe schema tables.

Should I create my own products table when using Stripe?

No, do not create product, price, customer, or subscription tables. stripe-replit-sync maintains the stripe schema automatically, so query stripe.products and stripe.prices directly and store only Stripe IDs as TEXT columns in your application tables.

Why is my Stripe webhook failing with a payload Buffer error?

This error occurs when express.json() parses the request body before the webhook route runs. Register the webhook route with express.raw({ type: 'application/json' }) before app.use(express.json()) so the handler receives a raw Buffer.

Can I insert Stripe data directly into the database with SQL?

No, never insert, update, or delete rows in the stripe schema tables. Create entities through the Stripe API instead, and let stripe-replit-sync webhooks synchronize the data into PostgreSQL automatically.