Stripe & Payments
Integrations & Backend · 2 articles
How do I add payments to my website?
Connect Supabase first, then set up Stripe (create account, configure products, enable test mode). Prompt Lovable: 'Add Stripe checkout.' Store your Stripe Secret Key securely via 'Add API Key'. Lovable generates checkout/portal Edge Functions, database tables with RLS, and UI buttons. Test in preview, deploy via 'Apply', then test in production.
Verify Webhook Events in Stripe
When integrating Stripe payments, verify that Stripe webhooks are firing correctly. Open your Stripe Dashboard → Developers → Webhooks and check event logs. Ensure the webhook URL matches what you configured in Lovable's Edge Functions. Test webhooks by triggering a test payment in Stripe test mode. If events aren't received, check your endpoint URL and authentication headers.