fix: keep paid limits during Stripe retries#386
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
|
Caution Review failedPull request was closed or merged during review WalkthroughA new utility function Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying usesend with
|
| Latest commit: |
33e340e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f476ac27.usesend.pages.dev |
| Branch Preview URL: | https://fix-stripe-retry-entitlement.usesend.pages.dev |
Summary
past_dueVerification
pnpm --filter=web exec vitest run -c vitest.unit.config.ts src/lib/subscription-status.unit.test.tsSummary by cubic
Keep teams on paid limits while Stripe retries failed invoices so they don’t drop to free caps during
past_due. The billing UI now also shows the paid plan during retries.isEntitledSubscriptionStatusto treatactive,trialing, andpast_dueas paid/entitled.isActiveand inPlanDetailsto display the paid plan during retries.past_due.Written for commit 33e340e. Summary will update on new commits.
Summary by CodeRabbit
New Features
Tests