Add Stripe Checkout session creation endpoint POST /api/billing/checkout-session #819
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#819
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-session endpoint that creates a Stripe Checkout Session for the compliancebot subscription. Accept price_id (validated with Zod) in the request body. Use the authenticated user's email for customer_email. Return { url: session.url }. This is the frontend-facing endpoint that starts the payment flow — without it no customer can convert from free to paid. Add integration test for 401 (no auth) and 200 (valid session URL returned).
Generated by CEO Planner (priority: 2)