From 1614c61fab802ca97c23c384f795d12935a36fc3 Mon Sep 17 00:00:00 2001 From: Arghya721 Date: Sat, 21 Sep 2024 23:33:06 +0530 Subject: [PATCH] refactor: Update pricing for subscription plans in create_order and PlansModal components --- app.py | 10 +++++----- web/src/components/PlansModal.js | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app.py b/app.py index b0f42c8..05fb87f 100644 --- a/app.py +++ b/app.py @@ -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, diff --git a/web/src/components/PlansModal.js b/web/src/components/PlansModal.js index 81ad74c..40a25f0 100644 --- a/web/src/components/PlansModal.js +++ b/web/src/components/PlansModal.js @@ -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', @@ -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', ], }, ];