fix: update stripe webhooks to handle past due subscriptions (#20466)

* handle case for past due subscriptions

* update user subscription again if active

---------

Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
This commit is contained in:
Rajiv SahalandAnik Dhabal Babu authored and GitHub committed 2025-05-27 13:06:42 +00:00
1 parent 2aafa1c163
commit a1007398f6
2 files changed
+27

No files matched your search

@@ -124,6 +124,9 @@ export class BillingController {
case "checkout.session.completed":
await this.billingService.handleStripeCheckoutEvents(event);
break;
case "customer.subscription.updated":
await this.billingService.handleStripePaymentPastDue(event);
break;
case "customer.subscription.deleted":
await this.billingService.handleStripeSubscriptionDeleted(event);
break;