Create handle-checkout-completed webhook to provision subscription records #1261

Open
opened 2026-04-13 09:55:54 -04:00 by pook · 0 comments
Owner

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)

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)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#1261
No description provided.