From fb014c2d1795749c320f7ccb66aabce43cc8a0ab Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 11 Jul 2026 13:19:06 +0000 Subject: [PATCH] Changes Co-authored-by: wolfoftyreso-debug <250630591+wolfoftyreso-debug@users.noreply.github.com> --- supabase/functions/create-checkout/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/supabase/functions/create-checkout/index.ts b/supabase/functions/create-checkout/index.ts index 931f829..e16900a 100644 --- a/supabase/functions/create-checkout/index.ts +++ b/supabase/functions/create-checkout/index.ts @@ -181,6 +181,16 @@ Deno.serve(async (req) => { }, } as any); + await insertOrder({ + method: "card", + b, + cleaned, + monthlyAmountOre, + stripeSessionId: session.id, + stripeSubscriptionId: null, + stripeCustomerId: customer.id, + }); + return new Response(JSON.stringify({ clientSecret: session.client_secret }), { status: 200, headers: { ...corsHeaders, "Content-Type": "application/json" },