Integra Stripe no Lovable via fluxo chat-driven com Supabase (Edge Functions + RLS), incluindo setup seguro de Secret Key via Add API Key, criação de checkouts (one-time/subscription), webhooks opt-in e troubleshooting. Use quando o usuário mencionar Lovable, lovable.dev, integração Stripe do Lovable, Add API Key, Supabase + Stripe no Lovable, Edge Functions, payment_intent, customer.subscription, ou “Stripe não funciona no preview”.
Aplicar a integração Stripe no Lovable, priorizando o fluxo chat-driven (auto-setup), com guardrails de segurança e um checklist de verificação (Supabase, secrets, deploy, logs).
.envloading/error/empty/success4242 4242 4242 4242) e app deployado.Use webhooks quando você precisa de:
customer.subscription.updated)Eventos típicos:
payment_intent.succeededpayment_intent.payment_failedcustomer.subscription.createdcustomer.subscription.updatedcustomer.subscription.deleted