diff --git a/components/Pricing.js b/components/Pricing.js index 7d97a7f..ec974c5 100644 --- a/components/Pricing.js +++ b/components/Pricing.js @@ -20,6 +20,7 @@ const Pricing = () => { const { user, session } = Auth.useUser(); const [customerId, setCustomerId] = useState(null); const [sub, setSub] = useState(false); + const flat = false; // Switch between subscription system or flat prices const portal = () => { axios @@ -45,8 +46,6 @@ const Pricing = () => { } }, [user]); - const flat = false; // Switch between subscription system or flat prices - const pricing = { monthly: { personal: "$5/mo", @@ -75,6 +74,7 @@ const Pricing = () => { customerId: customerId, userId: user.id, tokenId: session.access_token, + pay_mode: flat ? "payment" : "subscription", }) .then((result) => router.push(result.data.url)); }; @@ -171,7 +171,8 @@ const Pricing = () => {