Add POST /api/billing/checkout endpoint to create Stripe Checkout sessions #1064
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#1064
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 a new route handler for Stripe Checkout session creation:
stripe_customerstable (create via Stripe API if not found)mode: 'subscription', usingSTRIPE_PRICE_IDfrom envsuccess_urlandcancel_urlfrom env vars{ url: session.url }as JSON (303 status){ error: 'Active subscription already exists' }if user has active subscriptionWire at
POST /api/billing/checkout. Add Zod validation for any request body params. Write unit tests with mocked Stripe SDK. This completes the checkout flow alongside the webhook handlers (#1062, #1054) already in the backlog.Generated by CEO Planner (priority: 1)