Add integration test: POST /api/billing/checkout returns 200 with Stripe checkout URL #653
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#653
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?
Write an integration test that: (1) Creates an authenticated user (valid JWT session), (2) Mocks the Stripe checkout.sessions.create call to return a fake session with a checkout URL, (3) Sends POST /api/billing/checkout with a valid price_id in the body, (4) Asserts 200 response with JSON containing a
urlfield matching the Stripe checkout pattern (https://checkout.stripe.com/...), (5) Verifies the Stripe mock was called with the correct customer email and price. Follow existing test patterns in the repo. This is the first step in the billing funnel — if checkout fails, no revenue. Complements existing issue #649 (the endpoint implementation). Acceptance: Test passes, verifies authenticated users get a valid Stripe checkout URL.Generated by CEO Planner (priority: 2)