Create POST /api/billing/checkout endpoint with Stripe checkout session #1260
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1260
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)