Create POST /api/billing/checkout endpoint with Stripe checkout session #1260

Open
opened 2026-04-13 09:55:54 -04:00 by pook · 0 comments
Owner

Create src/billing/routes/checkout.ts with POST handler creating a Stripe Checkout Session. Accept priceId and userId via Zod-validated body. Return sessionId for frontend redirect. Use error serialization from #1250. Wire into the billing router at /api/billing. Revenue blocker — without checkout, no user can convert to paid. Acceptance: POST /api/billing/checkout returns Stripe session, validates input, handles errors gracefully, type-checks.


Generated by CEO Planner (priority: 1)

Create src/billing/routes/checkout.ts with POST handler creating a Stripe Checkout Session. Accept priceId and userId via Zod-validated body. Return sessionId for frontend redirect. Use error serialization from #1250. Wire into the billing router at /api/billing. Revenue blocker — without checkout, no user can convert to paid. Acceptance: POST /api/billing/checkout returns Stripe session, validates input, handles errors gracefully, type-checks. --- *Generated by CEO Planner (priority: 1)*
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#1260
No description provided.