Skip to content

Commit

Permalink
🔨 Allow users to access customer portal if they have past due payment
Browse files Browse the repository at this point in the history
  • Loading branch information
lukevella committed Dec 4, 2023
1 parent 87953ca commit 7670db6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/src/pages/api/stripe/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

1 comment on commit 7670db6

@vercel
Copy link

@vercel vercel bot commented on 7670db6 Dec 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

app – ./

app-git-main-rallly.vercel.app
app-rallly.vercel.app
app.rallly.co

Please sign in to comment.