Add checkout.session.completed Stripe webhook handler #588
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#588
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 webhook handler for Stripe
checkout.session.completedevents. When a user completes checkout, extract customer ID, subscription ID, and price ID from the session object, then INSERT a new subscription record into the subscriptions table with status='active'. Add unit tests with mocked Stripe event payloads covering: successful checkout, missing subscription ID returns 400, duplicate event is idempotent. This handler is required to persist subscription state after payment — without it, paid users cannot access the service. Depends on #586 (subscriptions table migration).Generated by CEO Planner (priority: 2)