From 4685ef7439b72332a36152180488863153a47bd7 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Mon, 21 Oct 2024 00:39:14 -0600 Subject: [PATCH] refactor: update stripe envs --- apps/dokploy/server/utils/stripe.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/server/utils/stripe.ts b/apps/dokploy/server/utils/stripe.ts index 3c38e9a1..26445af7 100644 --- a/apps/dokploy/server/utils/stripe.ts +++ b/apps/dokploy/server/utils/stripe.ts @@ -9,19 +9,23 @@ export const stripe = new Stripe(process.env.STRIPE_SECRET_KEY || "", { apiVersion: "2024-09-30.acacia", }); +const BASE_PRICE_MONTHLY_ID = process.env.BASE_PRICE_MONTHLY_ID || ""; // $4.00 + +const BASE_ANNUAL_MONTHLY_ID = process.env.BASE_ANNUAL_MONTHLY_ID || ""; // $7.99 + export const getStripeItems = (serverQuantity: number, isAnnual: boolean) => { const items = []; if (isAnnual) { items.push({ - price: "price_1QC7XwF3cxQuHeOz68CpnIUZ", + price: BASE_ANNUAL_MONTHLY_ID, quantity: serverQuantity, }); return items; } items.push({ - price: "price_1QC7X5F3cxQuHeOz1859ljDP", + price: BASE_PRICE_MONTHLY_ID, quantity: serverQuantity, });