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:
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;
|
||||
|
||||
Reference in new issue
Block a user