Skip to content

Instantly share code, notes, and snippets.

@kwindla
Created March 5, 2019 21:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwindla/c93ccda41d5143daa9dda3027a63ae3a to your computer and use it in GitHub Desktop.
Save kwindla/c93ccda41d5143daa9dda3027a63ae3a to your computer and use it in GitHub Desktop.
export const plans = {
PLAN001A: {
monthlyCost: 0,
monthlyMinutesIncluded: 2000,
monthlyMinutesCap: 2000,
maxRoomParticipants: 2,
maxApiRooms: 5
},
PLAN049A: {
monthlyCost: 49,
monthlyMinutesIncluded: 10000,
maxRoomParticipants: 4,
maxApiRooms: 1000,
stripePlans: [
'plan_EY4HNUx8kyunBi', // startup base
],
usage: [
{
field: 'small_call_minutes',
description: 'Small video call participant-minutes',
costf: (minutes) => {
let billableMinutes = minutes - 10000;
if (billableMinutes < 0) { billableMinutes = 0; }
return billableMinutes * 0.004;
}
}
]
},
PLAN199A: {
monthlyCost: 199,
monthlyMinutesIncluded: 10000,
canHideDailyBranding: true,
canHipaa: true,
canRecord: true,
defaultMaxRoomParticipants: 4,
maxRoomParticipants: 50,
maxApiRooms: 10000,
stripePlans: [
'plan_EY4KxhOeFZhp5S', // developer base
],
usage: [
{
field: 'small_call_minutes',
description: 'Small video call participant-minutes',
costf: (minutes) => {
let billableMinutes = minutes - 10000;
if (billableMinutes < 0) { billableMinutes = 0; }
return billableMinutes * 0.004;
}
},
{
field: 'large_call_minutes',
description: 'Large video call participant-minutes',
costf: (minutes) => minutes*0.01
},
{
field: 'recordings_new_this_period',
description: 'New cloud recordings',
costf: (minutes) => minutes*0.015
},
{
field: 'recordings_stored',
description: 'Stored cloud recordings',
costf: (minutes) => minutes*0.015
},
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment