diff --git a/supabase/functions/create-checkout/index.ts b/supabase/functions/create-checkout/index.ts index e16900a..018de12 100644 --- a/supabase/functions/create-checkout/index.ts +++ b/supabase/functions/create-checkout/index.ts @@ -223,6 +223,17 @@ Deno.serve(async (req) => { }, } as any); + await insertOrder({ + method: "invoice", + b, + cleaned, + monthlyAmountOre, + stripeSessionId: null, + stripeSubscriptionId: subscription.id, + stripeCustomerId: customer.id, + }); + + return new Response( JSON.stringify({ invoice: true,