Reverse proxy (Caddy) → FastAPI (/api) → Stripe Checkout (subscription) + Webhook + SQLite events.
POST /api/create-checkout-session.
Use the steps below to run a clean, repeatable demo from scratch. Recommended before sharing this prototype.
cd ~/lightsail-lab
./reset_events.sh
stripe listen --forward-to https://54.234.44.15.sslip.io/api/webhook
/success, show real session details (mode/status/payment_status/subscription)./events/ and show webhook events stored in SQLite.stripe trigger checkout.session.completed
stripe trigger invoice.paid