Skip to content
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

feat: increase team subscription to $8 #9727

Merged
merged 2 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading