# Stripe payments in a Lovable app: set up, test and go live

> Choose either Lovable’s built-in payments (Pro plan or higher) or your own Stripe account; one project can’t use both. Test declines, cancellations and failed renewals in the preview, finish the go-live steps before expecting real payments, and keep prices and access checks on the server.

Canonical: https://shipfast.online/rescue/lovable/payments/
Last updated: 2026-10-25

By [Prayag Dalal](https://shipfast.online/about/). Checked against Lovable's documentation on 2026-10-25.

## Symptoms

- Checkout works in the preview, but real cards fail on the published app.
- A customer paid, but their account didn’t unlock the paid features.
- You’re not sure whether to use Lovable’s built-in payments or your own Stripe account.
- A subscriber changed their email address and lost access.

## Why it happens

Lovable offers built-in payments (Stripe or Paddle, set up and managed by Lovable, on paid plans) and an integration with a Stripe account you own. A project uses one or the other, not both. Built-in payments keep separate test and live environments: the preview only accepts test cards, and the published app won’t take real payments until you finish the go-live steps.

With your own Stripe account, Lovable builds edge functions that call Stripe with your stored key. For subscriptions, the app asks Stripe whether the signed-in user has an active subscription, matched by email address. That works, but a user who signs in with a different email from the one they paid with won’t be recognised.

## What Lovable already handles

- **Built-in payments:** Lovable creates the payment provider account and manages keys, webhooks and the test and live environments. Requires a Pro plan or higher.
- **Your own Stripe account:** Works on the Free plan. You enter a restricted or secret key in the Connect Stripe form, never in the chat, and it’s stored as a backend secret.
- **Test and live separation:** A test-mode banner shows only in the preview, and going live includes a readiness check before you publish.

## Fix it yourself

1. **Choose one approach.** Built-in payments for the least setup. Your own Stripe account if you already have one, want direct control, or have an older React + Vite app on your own Supabase project.
2. **Require sign-in for subscriptions.** Subscriptions need user accounts so a payment can be linked to a person. One-time payments can work without accounts.
3. **Test the unhappy paths.** In test mode, try a declined card, a cancelled checkout, a cancelled subscription and a failed renewal, and confirm the app grants or removes access each time.
4. **Complete go-live, then pay once yourself.** Finish your provider’s verification and the go-live steps, publish, and make one low-value real purchase with your own card before announcing.
5. **Keep prices and access on the server.** Run Lovable’s Deep scan, which looks for prices, fulfilment or paid features a customer can change or reach without paying. Never trust a price sent from the browser.

## Where it still goes wrong

- Matching subscriptions by email breaks when people change email or pay with a different one. If that’s common for you, link payments to a customer ID instead.
- Refund rules, failed-renewal emails, sales tax and invoices are business decisions. Paddle acts as merchant of record; Stripe does only with its optional Managed Payments.
- Some business categories are restricted by Stripe and Paddle and need extra review, with no guarantee of approval.

## FAQ

### Do I need a paid Lovable plan to take payments?

For built-in payments, yes: Pro or higher. Connecting your own Stripe account works on the Free plan.

### Why do real cards fail in my preview?

By design. The preview runs in test mode and only accepts test cards. Real payments run on the published app after you complete go-live.

### Stripe or Paddle?

Paddle is a merchant of record for digital products and software. Stripe covers digital products, services and physical goods, and is merchant of record only through Managed Payments. Lovable recommends one based on what you sell.

### Can I use built-in payments and my own Stripe account together?

Not in the same project. It’s one or the other.

## Sources

- [Lovable docs: Add payments to your app](https://docs.lovable.dev/features/payments)
- [Lovable docs: Connect your own Stripe account](https://docs.lovable.dev/integrations/stripe)
- [Stripe: test card numbers and test mode](https://docs.stripe.com/testing)

## Get it fixed

App rescue, From $1,000, fixed price: [send your app](https://shipfast.online/contact/?service=app-rescue).

## Related

- [All Lovable guides](https://shipfast.online/rescue/)
- [Free production readiness check](https://shipfast.online/tools/production-readiness-check/)
