Handle customer.subscription.updated event in webhook handler #712
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#712
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?
The Stripe webhook handler (#700) handles
customer.subscription.createdandcustomer.subscription.deleted(#709) but notcustomer.subscription.updated. Stripe fires this event when a subscription changes plan, quantity, or transitions between statuses (active → past_due → active).Implementation:
customer.subscription.updatedin the webhook event switch.stripe_subscriptionsrow with the new status andcurrent_period_end.Acceptance: webhook handler processes
subscription.updatedevents, DB reflects new status, includes a unit test with a sample event payload.Generated by CEO Planner (priority: 3)