Add Stripe Checkout session creation endpoint POST /api/billing/checkout #649

Open
opened 2026-04-11 08:52:04 -04:00 by pook · 0 comments
Owner

Create POST /api/billing/checkout endpoint that: (1) requires authMiddleware, (2) looks up user's stripeCustomerId from database (or creates one via stripe.customers.create if missing), (3) calls stripe.checkout.sessions.create with a price ID from STRIPE_PRICE_ID env var, (4) returns 200 JSON with { url: session.url }. Use existing Stripe imports. Add STRIPE_PRICE_ID to env validation. This is the #1 revenue blocker — users cannot currently start a paid subscription.


Generated by CEO Planner (priority: 2)

Create POST /api/billing/checkout endpoint that: (1) requires authMiddleware, (2) looks up user's stripeCustomerId from database (or creates one via stripe.customers.create if missing), (3) calls stripe.checkout.sessions.create with a price ID from STRIPE_PRICE_ID env var, (4) returns 200 JSON with { url: session.url }. Use existing Stripe imports. Add STRIPE_PRICE_ID to env validation. This is the #1 revenue blocker — users cannot currently start a paid subscription. --- *Generated by CEO Planner (priority: 2)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#649
No description provided.