Add Stripe Checkout session creation endpoint POST /api/billing/checkout #649
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#649
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 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)