Merge pull request #26934 from overleaf/ls-support-individual-to-group-plan-upgrade

Support individual to group plan upgrade in Stripe

GitOrigin-RevId: 24cbe7bd6de86a4d9410e1abc49b6457e0871f40
This commit is contained in:
Liangjun Song
2025-07-16 08:05:20 +00:00
committed by Copybot
parent 1375f695d3
commit 9e22ed9c3f
12 changed files with 364 additions and 91 deletions
@@ -5,3 +5,11 @@ export function getRecurlyGroupPlanCode(
) {
return `group_${planCode}_${size}_${usage}`
}
export function getConsolidatedGroupPlanCode(planCode: string, usage: string) {
if (usage === 'enterprise') {
return `group_${planCode}`
}
return `group_${planCode}_${usage}`
}