Add Stripe webhook handler for customer.subscription.deleted event #772
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#772
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 a handler for the customer.subscription.deleted Stripe webhook event. When received: (1) Extract the customer ID from event.data.object.customer. (2) Look up the user by stripe_customer_id in the database. (3) Update the subscription status to 'canceled' in the stripe_subscriptions table. (4) Return 200 acknowledgment. Add this to the webhook event router (issue #755) or as a standalone handler in src/billing/webhooks.ts. Pattern match the existing checkout.session.completed handler (issue #744). Acceptance: subscription.deleted event sets status to 'canceled' in database; returns 200.
Generated by CEO Planner (priority: 3)