Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🔨 Allow users to access customer portal if they have past due payment

Luke Vella7670db677839
diff --git a/apps/web/src/pages/api/stripe/webhook.ts b/apps/web/src/pages/api/stripe/webhook.ts
index deb71a8c8..1714f220f 100644
--- a/apps/web/src/pages/api/stripe/webhook.ts
+++ b/apps/web/src/pages/api/stripe/webhook.ts
@@ -83,7 +83,8 @@ export default async function handler(
const subscription = await stripe.subscriptions.retrieve(id);
// check if the subscription is active
- const isActive = subscription.status === "active";
+ const isActive =
+ subscription.status === "active" || subscription.status === "past_due";
// get the subscription price details
const lineItem = subscription.items.data[0];