# Build a Two-Sided Marketplace in Lovable

- Tool: Lovable Prompts
- Last updated: June 2026

## TL;DR

Paste the starter prompt into Lovable Build mode and get a browsable marketplace where sellers list items with images and buyers checkout via Stripe. The raw-body webhook follow-up is non-negotiable before real money flows. Full build runs ~250-500 credits over several days — the hardest category in this 31-page series.

## Frequently asked questions

### How is a marketplace different from a shopping cart in Lovable?

A shopping cart (single seller) uses one Stripe account — you charge buyers and keep 100% of revenue. A marketplace (multiple sellers) requires Stripe Connect, where each seller has their own Stripe Express account and Stripe splits the payout between the seller and your platform automatically. Connect adds the KYC onboarding step, the connect-onboarding-link Edge Function, and the application_fee_amount parameter to the Checkout session. It also means your webhook must handle payouts rows, not just orders rows.

### Do I really need Stripe Connect or can I use a single Stripe account for all sellers?

Legally, you need Stripe Connect if you're collecting money on behalf of third-party sellers. Using a single Stripe account and manually paying sellers via bank transfer works at very small scale (2-5 sellers, informal arrangement) but becomes legally complicated as you grow — you're acting as a payment facilitator without being licensed as one. Stripe Connect's Express accounts solve this by making each seller a direct Stripe customer responsible for their own tax reporting.

### What's the cheapest legal way to take payments on day one?

If you're still validating and have 1-3 known sellers: use Stripe Connect in test mode, limit to invited sellers only, and process real payments only after you've tested every edge case with test cards. The overhead of Connect is mostly one-time (KYC per seller) — the ongoing fee (0.25% Connect transfer fee) is small. Do not use a single Stripe account for multi-seller payments at any scale.

### How do I prevent fake listings or duplicate sellers?

Stripe Connect itself validates seller identity via KYC (ID + bank account) — you can't activate a seller's listings (set payouts_enabled) until Stripe approves them. For listing quality, the admin moderation queue in follow-up #5 lets you remove flagged content. For duplicate accounts, Stripe detects duplicate bank accounts during Connect onboarding and flags them automatically.

### Can I use Lovable Cloud storage for listing images at production scale?

Yes, up to ~500 listings with 3 images each at 2MB per image before hitting the 1GB free tier cap. At that point, upgrade to Supabase Pro ($25/mo) for 100GB Storage — or use Cloudflare R2 ($0.015/GB stored, $0 egress) via an Edge Function for uploads. R2 is the better choice long-term for a public marketplace because there are no egress fees, which matter when images are served on every page load.

### What happens when two buyers try to buy the same 1-of-1 item simultaneously?

Without inventory handling, both checkouts succeed and you oversell. Fix this in the stripe-checkout-session Edge Function: before creating the Stripe session, run UPDATE listings SET status='sold' WHERE id=$1 AND status='active' RETURNING id — if 0 rows are returned, throw a 409 error with message 'This item was just purchased by someone else.' This is an atomic check-and-update that prevents the race condition. The buyer sees a 'sold' message before Stripe ever charges them.

### When does it become cheaper to pay Sharetribe than to keep iterating in Lovable?

If you need a marketplace live within a week and you're still validating demand, Sharetribe Hard Start at $99/mo is cheaper than the Lovable credits and time you'll spend on the first iteration. Build in Lovable when you have a specific data model or UX flow Sharetribe cannot support, or when you've validated demand on Sharetribe and want to take 100% ownership. If your build outgrows this prompt kit and you need custom architecture, RapidDev builds production-grade Lovable apps at $13K-$25K — book a free 30-minute consultation at rapidevelopers.com.

---

Source: https://www.rapidevelopers.com/lovable-prompts/lovable-prompts-for-building-marketplace
© RapidDev — https://www.rapidevelopers.com/lovable-prompts/lovable-prompts-for-building-marketplace
