diff --git a/supabase/functions/meta-whatsapp-webhook/index.ts b/supabase/functions/meta-whatsapp-webhook/index.ts index d3cda8d..3450a58 100644 --- a/supabase/functions/meta-whatsapp-webhook/index.ts +++ b/supabase/functions/meta-whatsapp-webhook/index.ts @@ -234,6 +234,7 @@ async function generateStripeCheckoutUrl(userId: string): Promise { method: "POST", headers: { "Content-Type": "application/json", + "apikey": SUPABASE_SERVICE_ROLE_KEY, "Authorization": `Bearer ${SUPABASE_SERVICE_ROLE_KEY}`, }, body: JSON.stringify({ user_id: userId, plan: "mensal" })