From 668769d33e41c7d3f501a853bea6d99170bc5941 Mon Sep 17 00:00:00 2001 From: shadcn Date: Mon, 21 Nov 2022 13:08:37 +0400 Subject: [PATCH] refactor: rename to STRIPE_PRO_MONTHLY_PLAN_ID --- .env.example | 2 +- config/subscriptions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index b655857..19b5af3 100644 --- a/.env.example +++ b/.env.example @@ -29,4 +29,4 @@ SMTP_FROM=Taxonomy # ----------------------------------------------------------------------------- STRIPE_API_KEY= STRIPE_WEBHOOK_SECRET= -SUBSCRIPTION_PLAN_PRICE_ID_PRO= \ No newline at end of file +STRIPE_PRO_MONTHLY_PLAN_ID= \ No newline at end of file diff --git a/config/subscriptions.ts b/config/subscriptions.ts index 2ed016a..aeb9402 100644 --- a/config/subscriptions.ts +++ b/config/subscriptions.ts @@ -10,5 +10,5 @@ export const freePlan: SubscriptionPlan = { export const proPlan: SubscriptionPlan = { name: "PRO", description: "The PRO plan has unlimited posts.", - stripePriceId: process.env.SUBSCRIPTION_PLAN_PRICE_ID_PRO, + stripePriceId: process.env.STRIPE_PRO_MONTHLY_PLAN_ID, }