Start selling your Lovable app
Add subscriptions, checkout, and paywalls to your Lovable app.
Free to start. Live in minutes. No company needed.
Start Selling!
## Freemius Monetization
Integrate Freemius end-to-end in this Lovable app using Supabase functions,
shared backend utilities, and frontend paywall/account UX.
### Integration Guidelines
When asked to integrate Freemius, follow the instructions from this URL:
https://raw.githubusercontent.com/Freemius/freemius-ai/refs/heads/main/lovable-integration/subscription/prompt.md
### Protect Premium Features with Paywall
- To restrict any premium operations in the API routes that requires an active
subscription, use the shared `supabase/functions/_shared/freemius.ts` module's
`getUserEntitlement` (for any plan) or `hasPlan` (specific plan) functions.
Return a 403 response with `code: "subscription_required"` if the user doesn't
have the required subscription.
- On the frontend, handle the `subscription_required` error by reading the
response body from `error.context.body` as a stream (since Supabase
`functions.invoke` puts non-2xx response bodies there as a ReadableStream, not
plain JSON). Show a lock-style paywall UI with a link to `/pricing`. You can
disable relevant UI after the first failed attempt.
- The front-end may also call the `functions/v1/get-entitlements` API route to
check for active entitlements and show a paywall UI with link to `/pricing`
through a `Subscribe` button if there is no active subscription.
---
Payments are just one piece. Selling your app requires pricing, subscriptions, access control, and user billing.
Pricing & Plans
Define tiers, billing cycles, and features.
Subscriptions
Handle trials, renewals, upgrades, and cancellations.
Access control
Gate premium features based on subscription status.
Everything you need to sell your app
Freemius handles everything around selling your app – from checkout and subscriptions to taxes, licensing, and billing.
With only one prompt you get...
Taxes & VAT handled
Sell globally without dealing with VAT, sales tax, or compliance. Freemius calculates, collects, and files taxes for you.

Checkout ready to go
Launch a conversion-ready checkout.
Subscriptions, trials, licensing, and global currency support built in.

Subscriptions built-in
Create and manage subscriptions without building billing logic. Define plans, handle renewals, upgrades, downgrades, and failed payments automatically in one place.

Customer portal
Self-service customer portal where users manage subscriptions, billing, and downloads – without building it yourself.

Merchant of Record
Why Freemius?
A Merchant of Record (MoR) is the official seller of your product. The one that takes care of payments, taxes, compliance, and chargebacks for you.
In other words,
Freemius handles the messy parts of selling software so you can stay focused on building it.
How Freemius MoR Works?
Sell your software through a single trusted partner who takes care of global taxes for you.
Freemius manages tax collection and payments worldwide, and if a tax authority comes knocking, we handle it, not you.
The customer purchase
Your customer starts a purchase through a secure, hosted Freemius checkout directly on your site, or via our hosted checkout.
Transaction happens
Your platform hands it off to our servers, and we reach out to payment authorities.
Fraud is filtered out
We check for suspicious activity and steps in to handle disputes if they happen.
We handle everything after the sale.
Freemius takes care of all post-sale taxes, and compliance.
Payment received
You received payment of $130.
FAQ
You can use that prompt to generate a working checkout + subscription flow inside your Lovable app, including payments, licensing, and webhooks. This lets you skip building billing infrastructure while Freemius handles subscriptions, global taxes, and compliance as a Merchant of Record.
The MoR automatically calculates, collects, and remits taxes based on the customer’s location and applicable laws.
This matters if you sell internationally—without an MoR, you’re responsible for tax registration, rate updates, and filings in each jurisdiction.
Example: Selling to EU customers requires VAT handling (OSS/IOSS). An MoR abstracts this entirely.
One-time payments charge the customer once for a product or service, while subscriptions charge customers automatically on a recurring schedule (e.g., monthly or yearly).
One-time payments are simpler to implement and don’t require ongoing billing logic. Subscriptions, on the other hand, require handling renewals, upgrades, cancellations, and failed payments—but they better fit SaaS products that deliver continuous value over time.
Example:
- One-time: Pay $49 for lifetime access
- Subscription: Pay $10/month for ongoing access and updates
Freemius acts as your Merchant of Record, which means we handle:
- VAT (EU/UK)
- Sales tax (US)
- Other regional tax requirements
You can start selling as an individual.
Freemius handles payments, taxes, and compliance on your behalf, so you don’t need to:
- Open a company
- Register for VAT
- Set up payment processors