Repository navigation
Remove legacy Stack billing entirely (checkout + recognition) #7662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,6 @@ import { | |
| FREE_PLAN_ID, | ||
| TEAM_PLAN_ID, | ||
| hasActiveTeamSubscriptionForTeam, | ||
| metadataPlanId, | ||
| resolveProPlanStatus, | ||
| type BillingManagementKind, | ||
| } from "../../../../services/billing/pro"; | ||
|
|
@@ -90,12 +89,8 @@ async function resolveTeamPlanStatus(user: BillingTeamUserLike): Promise<TeamPla | |
| return { planId: FREE_PLAN_ID, billingManagement: "none" }; | ||
| } | ||
| const stripeActive = await hasActiveTeamSubscriptionForTeam(team.id); | ||
| const metadataActive = metadataPlanId(team.clientReadOnlyMetadata) === TEAM_PLAN_ID; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Team VM metadata entitlement driftMedium Severity Team plan status now depends only on an active Reviewed by Cursor Bugbot for commit 526da14. Configure here. |
||
| if (stripeActive) { | ||
| return { planId: TEAM_PLAN_ID, billingManagement: "stripe" }; | ||
| } | ||
| if (metadataActive) { | ||
| return { planId: TEAM_PLAN_ID, billingManagement: "external" }; | ||
| } | ||
| return { planId: FREE_PLAN_ID, billingManagement: "none" }; | ||
| } | ||


Uh oh!
There was an error while loading. Please reload this page.