Add Stripe webhook handler for checkout.session.completed event #718
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#718
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?
In the billing webhook handler (from #700), add processing for
checkout.session.completedevents. Extract customer ID, subscription ID, and user email from event.data.object. Upsert into stripe_customers table, insert into stripe_subscriptions with status='active' and current_period_end from the subscription. Depends on: #700 (webhook route), #651 (migration — merged). Acceptance: completed checkout creates active subscription record in DB, returns 200 to Stripe.Generated by CEO Planner (priority: 1)