Add Stripe webhook handler for checkout.session.completed event #718

Open
opened 2026-04-11 13:45:16 -04:00 by pook · 0 comments
Owner

In the billing webhook handler (from #700), add processing for checkout.session.completed events. 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)

In the billing webhook handler (from #700), add processing for `checkout.session.completed` events. 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)*
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#718
No description provided.