From 92ae98279331cb33c30719d89143b26051a30218 Mon Sep 17 00:00:00 2001 From: Oliver Bryan Date: Wed, 28 Jan 2026 18:18:24 +0000 Subject: [PATCH] stripe client setup --- packages/backend/src/stripe/client.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 packages/backend/src/stripe/client.ts diff --git a/packages/backend/src/stripe/client.ts b/packages/backend/src/stripe/client.ts new file mode 100644 index 0000000..8fab7e0 --- /dev/null +++ b/packages/backend/src/stripe/client.ts @@ -0,0 +1,14 @@ +import Stripe from "stripe"; + +const stripeSecretKey = process.env.STRIPE_SECRET_KEY; + +if (!stripeSecretKey) { + throw new Error("STRIPE_SECRET_KEY is required"); +} + +export const stripe = new Stripe(stripeSecretKey, { + apiVersion: "2024-12-18.acacia", +}); + +export const STRIPE_PRICE_MONTHLY = process.env.STRIPE_PRICE_MONTHLY!; +export const STRIPE_PRICE_ANNUAL = process.env.STRIPE_PRICE_ANNUAL!;