Merge pull request #35836 from overleaf/rh-prices-split

[web] Update monthly plan prices for new subscriptions with split test

GitOrigin-RevId: 42d0adaf68647adc93f4c05d5ddeefb356753db2
This commit is contained in:
roo hutton
2026-09-17 11:49:04 +00:00
committed by Copybot
parent 2e1a313ccd
commit b886c0b266
18 changed files with 553 additions and 30 deletions
@@ -40,6 +40,7 @@ type PaymentProviderRecord = {
nextPaymentDueAt: string
nextPaymentDueDate: string
currency: CurrencyCode
planPrice: number
state?: SubscriptionState
trialEndsAtFormatted: Nullable<string>
trialEndsAt: Nullable<string>
+7 -2
View File
@@ -53,6 +53,9 @@ export type PendingPaymentProviderPlan = {
export type Plan = {
annual?: boolean
displayPrice?: string
// list price excluding tax, in the subscription's currency, resolved from the
// user's assigned price version. Only set for the change plan modal.
listPrice?: number
featureDescription?: Record<string, unknown>[]
addOns?: AddOn[]
features?: Features
@@ -109,8 +112,10 @@ export type StripeBaseLookupKey =
| 'group_standard_educational'
| 'group_professional_educational'
// Keep in sync with LATEST_STRIPE_LOOKUP_KEY_VERSION in PlansLocator.mjs
export type StripeLookupKeyVersion = 'feb2026'
// A version of prices we start subscriptions at: PlansLocator's
// DEFAULT_STRIPE_LOOKUP_KEY_VERSION, or any additional versions
// defined in settings
export type StripeLookupKeyVersion = 'feb2026' | (string & {})
export type StripeLookupKey =
`${StripeBaseLookupKey}_${StripeLookupKeyVersion}_${StripeCurrencyCode}`