Initial working state: CL3.5 complete (Plesk sync + suspend/unsuspend)

This commit is contained in:
2026-03-05 06:47:43 +00:00
commit a36d55eae5
53 changed files with 9925 additions and 0 deletions

19
lib/stripe.ts Normal file
View File

@@ -0,0 +1,19 @@
import Stripe from "stripe";
import { env } from "@/lib/env";
let stripeClient: Stripe | null = null;
export function getStripeClient() {
if (!env.stripeSecretKey) {
throw new Error("STRIPE_SECRET_KEY is not configured");
}
if (!stripeClient) {
stripeClient = new Stripe(env.stripeSecretKey, {
apiVersion: "2025-02-24.acacia",
});
}
return stripeClient;
}