Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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