Create handle-checkout-completed webhook to provision subscription records #1261
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#1261
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 src/billing/webhooks/handle-checkout-completed.ts. On checkout.session.completed, extract customer ID, subscription ID, and user email. Insert into stripe_customers and stripe_subscriptions DB tables (from migration #651 / #692). Set subscription status to 'active'. Register in webhook event router. Acceptance: webhook handler creates DB records for new subscribers, type-checks, logs errors instead of throwing.
Generated by CEO Planner (priority: 1)