Merge pull request #25117 from overleaf/ls-map-stripe-product-to-recurly-plan-code

Use metadata to map Stripe product to Recurly plan code

GitOrigin-RevId: 775eb39cedff81985fc72cb14d411575231ade8f
This commit is contained in:
Liangjun Song
2025-04-29 08:06:28 +00:00
committed by Copybot
parent 5d78229e1e
commit 62760a9bf5
2 changed files with 0 additions and 34 deletions
@@ -114,22 +114,6 @@ describe('PlansLocator', function () {
})
})
describe('mapStripeLookupKeyToRecurlyPlanCode', function () {
it('should return the recurly plan code for existing plans', function () {
const planCode = 'standard_monthly'
const lookupKey =
this.PlansLocator.mapStripeLookupKeyToRecurlyPlanCode(planCode)
expect(lookupKey).to.equal('collaborator')
})
it('should return undefined for unknown plans', function () {
const planCode = 'foobar'
const lookupKey =
this.PlansLocator.mapStripeLookupKeyToRecurlyPlanCode(planCode)
expect(lookupKey).to.equal(undefined)
})
})
describe('getPlanTypeAndPeriodFromRecurlyPlanCode', function () {
it('should return the plan type and period for "collaborator"', function () {
const { planType, period } =