Stripe & Payments

Integrations & Backend · 5 articles

Add payment capabilities to your application with Stripe

Prerequisites: connected Supabase project and Stripe account. Store your Stripe Secret Key via 'Add API Key'—never paste it in chat. Prompt Lovable to add checkout and subscription features, then click Apply to deploy Edge Functions.

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.

How do I handle payments in my Lovable app?

Connect Supabase first, then prompt Lovable to "Add Stripe integration." Lovable will generate checkout and subscription portal Edge Functions, database tables with RLS, and UI buttons. Store your Stripe Secret Key via "Add API Key" in chat—never paste keys directly. Note that Stripe integration only works in deployed versions, not in preview mode.

How to create a payment link in Stripe (via Lovable)

First, connect Supabase to your project. Then create products and pricing in Stripe, and set up Stripe test mode for trying things out. In Lovable, store your Stripe Secret Key securely via 'Add API Key' (never paste keys in chat). Describe your needs in chat—Lovable generates checkout/portal Edge Functions, database tables with Row Level Security, and UI buttons. Deploy via 'Apply' before testing 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.