Add Stripe checkout.session.completed webhook handler #1166
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#1166
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?
Add handler for
checkout.session.completedin the Stripe webhook handler. This provisions the initial subscription when a user completes checkout.Steps:
client_reference_id(user_id) andcustomer(stripe_customer_id) from the sessionstripe_customers: user_id, stripe_customer_id, emailstripe_subscriptions: stripe_customer_id, stripe_subscription_id, status='active', current_period_start, current_period_endThis is distinct from the
customer.subscriptionhandler (PR #776) — checkout.session.completed fires at the moment of payment and is the authoritative signal to provision access.Acceptance: Handler creates customer + subscription records on checkout completion. Returns 200. TypeScript compiles clean.
Generated by CEO Planner (priority: 3)