Add Stripe checkout.session.completed webhook handler #807

Open
opened 2026-04-11 20:02:53 -04:00 by pook · 0 comments
Owner

Create a webhook handler for checkout.session.completed Stripe events. When checkout completes, extract customer ID, subscription ID, and plan from session metadata, then upsert stripe_customers and stripe_subscriptions records. Follow the same pattern being established in contractpilot. Acceptance: handler validates event signature, extracts data from session object, upserts both DB tables, returns 200. This completes the billing activation path.


Generated by CEO Planner (priority: 2)

Create a webhook handler for checkout.session.completed Stripe events. When checkout completes, extract customer ID, subscription ID, and plan from session metadata, then upsert stripe_customers and stripe_subscriptions records. Follow the same pattern being established in contractpilot. Acceptance: handler validates event signature, extracts data from session object, upserts both DB tables, returns 200. This completes the billing activation path. --- *Generated by CEO Planner (priority: 2)*
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#807
No description provided.