Build a Stripe checkout for a metered API
Founder is validating usage-based pricing for an internal API and needs a working pay-as-you-go checkout, not just a button. Map the happy path, handle failed payments and plan changes, persist subscription state, and make the billing screen clear enough for pilot users.
- Wire a metered pricing screen to Stripe Checkout.
- Handle success, cancel, and webhook retry states.
- Persist plan + usage to Postgres and surface it in-app.
- A working billing flow founders can demo to pilot customers.
- A short note explaining edge cases and tradeoffs.