Add customer.subscription.updated Stripe webhook handler #589
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#589
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?
Create a webhook handler for Stripe
customer.subscription.updatedevents. When a subscription changes (plan upgrade/downgrade, trial-to-active, pause/resume), UPDATE the subscriptions table row matching the Stripe subscription ID with new status, current_period_end, and price_id. Add unit tests for: trial ending (trialing→active), plan change (price_id update), past_due transition, no DB row found (log warning, return 200). Keeps local billing state in sync with Stripe.Generated by CEO Planner (priority: 3)