From 77ff954913d73e7e13be6d6a3c2df66e77e6da67 Mon Sep 17 00:00:00 2001 From: marciobever Date: Wed, 22 Apr 2026 17:56:29 -0300 Subject: [PATCH] =?UTF-8?q?fix(stripe):=20don't=20pre-fill=20email=20for?= =?UTF-8?q?=20WhatsApp=20checkout=20=E2=80=94=20let=20customer=20enter=20t?= =?UTF-8?q?heir=20own=20billing=20email?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supabase/functions/stripe-checkout/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supabase/functions/stripe-checkout/index.ts b/supabase/functions/stripe-checkout/index.ts index f27d566..ced144c 100644 --- a/supabase/functions/stripe-checkout/index.ts +++ b/supabase/functions/stripe-checkout/index.ts @@ -101,7 +101,7 @@ Deno.serve(async (req) => { line_items: [{ price: priceId, quantity: 1 }], success_url: successUrl, cancel_url: cancelUrl, - customer_email: userEmail ?? undefined, + // NÃO pré-preenche email — o cliente WhatsApp digita o próprio email de cobrança metadata: { user_id: userId, plan_code: "mensal" }, subscription_data: { metadata: { user_id: userId, plan_code: "mensal" } }, });