Skip to content

Commit

Permalink
feat: increase team subscription to $8 (#9727)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianrunhe committed May 8, 2024
1 parent a02c935 commit 9d2fa5f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Expand Up @@ -8,6 +8,7 @@ import useTooltip from '../../../../hooks/useTooltip'
import {Elevation} from '../../../../styles/elevation'
import {PALETTE} from '../../../../styles/paletteV3'
import {Radius} from '../../../../types/constEnums'
import {MONTHLY_PRICE} from '../../../../utils/constants'

const PlanTitle = styled('h6')({
color: PALETTE.SLATE_700,
Expand Down Expand Up @@ -187,7 +188,7 @@ const OrgPlan = (props: Props) => {
{planTier === 'team' ? (
<>
<PlanSubtitle>
{'$6 per active user '}
{`$${MONTHLY_PRICE} per active user `}
<StyledIcon ref={originRef} onMouseOver={openTooltip} onMouseOut={closeTooltip}>
{<Info />}
</StyledIcon>
Expand Down
2 changes: 1 addition & 1 deletion packages/client/utils/constants.ts
Expand Up @@ -100,7 +100,7 @@ export const AUTHENTICATION_PAGE = 'authentication'

/* Stripe */
// changing this does NOT change it in stripe, it just changes the UI
export const MONTHLY_PRICE = 6
export const MONTHLY_PRICE = 8

export const FAILED = 'FAILED'

Expand Down
Expand Up @@ -35,7 +35,7 @@ export default async function makeUpcomingInvoice(
: undefined

const subscription = stripeInvoice.lines.data.find(
({plan}) => plan?.id === StripeManager.PARABOL_TEAM_600
({plan}) => plan?.id === StripeManager.TEAM_PRICE_APP_ID
)
if (subscription && subscription.quantity !== quantity) {
const {subscription_item: lineitemId} = subscription
Expand Down
10 changes: 5 additions & 5 deletions packages/server/utils/stripe/StripeManager.ts
Expand Up @@ -4,8 +4,8 @@ import {Logger} from '../Logger'
import sendToSentry from '../sendToSentry'

export default class StripeManager {
static PARABOL_TEAM_600 = 'parabol-pro-600' // $6/seat/mo
static PARABOL_ENTERPRISE_2021_LOW = 'plan_2021_ann_low'
static TEAM_PRICE_APP_ID = 'parabol-pro-800' // $8/seat/mo
static ENTERPRISE_PRICE_APP_ID = 'plan_2021_ann_low'
static WEBHOOK_SECRET = process.env.STRIPE_WEBHOOK_SECRET!
stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, {
apiVersion: '2020-08-27',
Expand Down Expand Up @@ -116,7 +116,7 @@ export default class StripeManager {
proration_behavior: 'none',
items: [
{
plan: plan || StripeManager.PARABOL_ENTERPRISE_2021_LOW,
plan: plan || StripeManager.ENTERPRISE_PRICE_APP_ID,
quantity
}
]
Expand All @@ -141,7 +141,7 @@ export default class StripeManager {
},
items: [
{
plan: StripeManager.PARABOL_TEAM_600,
plan: StripeManager.TEAM_PRICE_APP_ID,
quantity
}
]
Expand All @@ -164,7 +164,7 @@ export default class StripeManager {
},
items: [
{
plan: StripeManager.PARABOL_TEAM_600,
plan: StripeManager.TEAM_PRICE_APP_ID,
quantity
}
]
Expand Down

0 comments on commit 9d2fa5f

Please sign in to comment.