Skip to content

Commit

Permalink
refactor: Update pricing for subscription plans in create_order and P…
Browse files Browse the repository at this point in the history
…lansModal components
  • Loading branch information
Arghya721 committed Sep 21, 2024
1 parent cfed939 commit 1614c61
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,11 +892,11 @@ async def create_order(plan_id: str, token_info: dict = Depends(verify_token)):

amount = 0
if plan_id == 'plan_50':
amount = 420
elif plan_id == 'plan_250':
amount = 840
elif plan_id == 'plan_500':
amount = 1680
amount = 399
elif plan_id == 'plan_150':
amount = 899
elif plan_id == 'plan_300':
amount = 1799
else:
raise HTTPException(
status_code=status.HTTP_400_BAD_REQUEST,
Expand Down
14 changes: 7 additions & 7 deletions web/src/components/PlansModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const PlansModal = ({ isOpen, onClose }) => {
{
name: 'Basic',
description: '',
price: 420,
price: 399,
planId: "plan_50",
features: [
'50 Generations on all models',
Expand All @@ -18,19 +18,19 @@ export const PlansModal = ({ isOpen, onClose }) => {
{
name: 'Standard',
description: '',
price: 840,
planId: "plan_250",
price: 899,
planId: "plan_150",
features: [
'250 Generations on all models',
'150 Generations on all models',
],
},
{
name: 'Premium',
description: '',
price: 1680,
planId: "plan_500",
price: 1799,
planId: "plan_300",
features: [
'500 Generations on all models',
'300 Generations on all models',
],
},
];
Expand Down

0 comments on commit 1614c61

Please sign in to comment.