stripe client setup

This commit is contained in:
2026-01-28 18:18:24 +00:00
parent c8cb99c86a
commit 92ae982793

View File

@@ -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!;