From c8b5f47bab20b98a26bacf52fabc63219fd42c1d Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Sat, 25 Jul 2026 12:56:24 -0700 Subject: [PATCH] Fix Stripe client construction --- system/netlify/functions/ticket.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/netlify/functions/ticket.js b/system/netlify/functions/ticket.js index f6656889bf..2729f47156 100644 --- a/system/netlify/functions/ticket.js +++ b/system/netlify/functions/ticket.js @@ -104,7 +104,7 @@ export async function handler(event, context) { ? process.env[`${envKey}STRIPE_API_TEST_PRIV_KEY`] : process.env[`${envKey}STRIPE_API_PRIV_KEY`]; - const stripe = Stripe(key); + const stripe = new Stripe(key); try { // Create a PaymentIntent with the order amount and currency @@ -137,7 +137,7 @@ export async function handler(event, context) { ? process.env[`${prefix}STRIPE_API_TEST_PRIV_KEY`] : process.env[`${prefix}STRIPE_API_PRIV_KEY`]; - const stripe = Stripe(key); + const stripe = new Stripe(key); const sig = event.headers["stripe-signature"]; const secret = dev ? devSecret : prodSecret; -- 2.51.2