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

Open
opened 2026-04-11 20:33:19 -04:00 by pook · 0 comments
Owner

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)

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)*
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#819
No description provided.