feat: add subscription update and cancel logics
This commit is contained in:
@@ -2,15 +2,14 @@ const plans = [
|
||||
{
|
||||
name: '10k - monthly',
|
||||
limit: '10,000',
|
||||
quota: 10000,
|
||||
price: '€20',
|
||||
productId: '47384',
|
||||
},
|
||||
{
|
||||
name: '30k - monthly',
|
||||
limit: '30,000',
|
||||
price: '€50',
|
||||
productId: '47419',
|
||||
},
|
||||
}
|
||||
];
|
||||
|
||||
export function getPlanById(id: string) {
|
||||
return plans.find((plan) => plan.productId === id);
|
||||
}
|
||||
|
||||
export default plans;
|
||||
|
Reference in New Issue
Block a user