Headless ecommerce with Next.js in 2026: Medusa, Vendure, Saleor and what they really cost

Every few weeks a store owner asks me the same question: Shopify takes a fee on everything, WooCommerce breaks on every plugin update, so why not build the store in Next.js and own it? The honest answer is that you can, and in 2026 you don’t have to build it from scratch, but the bill doesn’t disappear. It moves from a monthly subscription into engineering time, and whether that trade pays depends on what you sell and who maintains it.

My short version: build on an open-source commerce engine, put a Next.js storefront in front of it, and take payments through Stripe. For a team that works in TypeScript and wants to own the platform, Medusa is the strongest fit today. Start with one real shop, measure it, and only then think about a platform.

Headless ecommerce with Next.js guide cover comparing Medusa, Vendure and Saleor, with storefront, engine and Stripe
A practical guide to headless ecommerce with Next.js, Medusa, Vendure and Saleor.

How headless commerce works

In Shopify or WooCommerce the store and the website are one system. Headless splits them: a commerce engine holds products, orders, customers and discounts, and your Next.js storefront talks to it through an API. You own every pixel of the site and the checkout, the engine does the boring and risky parts, and Stripe handles the money.

You build the storefront, the engine and Stripe do the heavy liftingAPIShopperBrowser or phoneNext.js storefrontPages, cart, checkoutYour design, your codeCommerce engine (Medusa)Products, orders, discountsCustomers, admin panelStripeCards, Apple Pay, PayPal, LinkConfirms payments to the engineDatabasePostgres, RedisIntegrationsEmail, shippingTax, search
How a headless store fits together: the Next.js storefront, the commerce engine, Stripe and the services behind them.

The storefront is the only part you design. Payments go from the shopper’s browser straight to Stripe, and Stripe tells the engine when a payment succeeds. That last step is where most of the real bugs live, more on that below.

The engines compared

For a platform you own, the realistic open-source shortlist is Medusa, Vendure and Saleor. Everything else is either a different trade-off (EverShop, Payload, headless WooCommerce) or keeps you paying a SaaS vendor (Shopify Hydrogen, BigCommerce, Swell, Commerce Layer).

EngineStack and APILicenseNext.js storefrontBest forWatch out for
Medusa v2TypeScript, Node.js, REST + JS SDK, Postgres + RedisMITOfficial starter, App RouterTypeScript teams, custom logic, owning the platformNeeds server, worker and Redis in production. Thin plugin ecosystem. Docs trail the code
Vendure v3TypeScript, NestJS, GraphQL, Postgres, MySQL or SQLiteGPLv3, paid commercial license availableOfficial Next.js storefront in progress, Remix and Qwik starters todayStrict typing, B2B, multi-channel, long-lived codebasesGPLv3 review if you run it as SaaS. Angular admin replaced by a new React dashboard
SaleorPython, Django, GraphQLBSD-3Official Next.js storefrontMulti-channel, multi-currency and multi-warehouse out of the boxPython backend next to a TypeScript frontend. Saleor Cloud is expensive
EverShopTypeScript, Express, React, REST + GraphQLGPLv3Bundled React storefront, or headlessFastest integrated launch for a small D2C shopSmaller team and community. Thinner docs for multi-currency and B2B
Payload CMS ecommerceTypeScript, runs inside Next.jsMITIt is a Next.js appContent-heavy brands that want CMS and shop in one appEcommerce plugin is in beta. No native shipping, tax or subscriptions. Stripe only
Headless WooCommerceWordPress + WPGraphQL or the Store APIGPLBuild your ownClients who already know the WordPress adminTwo systems to maintain, and the plugin conflicts stay
Shopify Hydrogen or Next.js on ShopifyShopify Storefront APIShopify SaaSHydrogen is React Router based, Next.js Commerce works tooBrands staying on Shopify that want a custom frontYou still pay Shopify. It is a custom theme, not your own platform
BigCommerce CatalystNext.js on the BigCommerce GraphQL APICatalyst is open source, BigCommerce is SaaSIt is Next.jsVisual editing (Makeswift) on a SaaS backendStill a SaaS subscription. Few independent reviews
Swell, Commerce LayerHosted headless APIsSaaSBring your ownHeadless without running serversPaid tiers from roughly $300 to $650 a month and up, per third-party listings

Two to avoid for new projects: Reaction Commerce (later Mailchimp Open Commerce), which is officially discontinued, and anything built from Medusa v1 tutorials, because v2 is a full rewrite and the old pages still rank in Google.

Known bugs and what reviewers say

No engine is bug-free. The pattern is the same everywhere: the documented path works, the edges cost days, and upgrades need a line in the budget. Most of the reviews out there come from agencies that sell these platforms, so I read them as informed opinion, not measurements.

Medusa v2

The most expensive class of bug is payment status. A developer running a live Medusa v2 shop documented Stripe charging the card while the order stayed pending, so customers paid and never got a confirmation email. The related GitHub issues, #11766 (paid total stuck at zero) and #13301 (Stripe capture called twice), are closed and the fix landed around v2.11.1. The same shop’s workaround then kept running after the fix and sent every customer two confirmation emails for months, which is the part I’d remember: every workaround needs an expiry date.

The same write-up found a shipping rule that ran cart values through Date.parse, so a 100 cart compared wrong against a 60 threshold and free shipping silently vanished (dev.to write-up). Other reports cover db:migrate hanging (#15987), migrations failing on read-only containers (#17377) and a production build breaking between two patch versions (#14474).

One infrastructure trap catches almost everyone: Medusa ships with an in-memory workflow engine by default. Deploy it to production as is and in-flight orders can vanish on a restart. Use the Redis-backed engine and split the server and worker processes from day one (KVY Technology review, Medusa deployment docs). The overall verdict from people running it is consistent: production-ready, with real marketplaces on it, but it asks for ongoing engineering ownership.

Vendure v3

Vendure patched a SQL injection in its languageCode search query on PostgreSQL across v3.6 and older lines, disclosed responsibly (CodeNote). Its Angular admin is being replaced by a React dashboard and is unmaintained after July 2026, so older admin plugins need porting (Vendure docs). The core moved from MIT to GPLv3: building a storefront against its API doesn’t trigger the GPL, a modified core you distribute does (GitHub). Reviewers praise its type safety and discipline, and IBM’s Project Marlin and the Munch marketplace, about 10,000 transactions a day, run on it.

Saleor

Saleor Cloud’s paid plans start in the four figures a month plus GMV-based fees (Saleor pricing), so self-hosting is the realistic path for a small shop. The Python and Django backend means two stacks to maintain next to a TypeScript storefront. I found few independent 2026 reviews, and older user reviews complain about limited integrations and support (Slashdot).

The rest

Payload’s ecommerce plugin is officially beta and may break between releases (Payload docs). EverShop has a smaller team and no clearly visible security policy in its public repo, so check its bus factor before you rely on it. On Hydrogen and Next.js on Shopify, reviewers agree that neither is a performance shortcut: a headless site stuffed with scripts and tags loses to a tuned Shopify theme (Ask Phill, Naturaily). BigCommerce Catalyst has almost no independent reviews yet, and its perfect Core Web Vitals score is BigCommerce’s own claim.

Checkout and payments

The checkout is where a headless shop wins or loses against Shopify, and Stripe gets you closest out of the box. In Medusa v2 Stripe is built in, installed by default and registered in medusa-config.ts. Turning on automatic_payment_methods enables wallets like Apple Pay and Google Pay, and production needs Stripe webhooks for payment_intent.succeeded and payment_intent.amount_capturable_updated (Medusa Stripe docs).

On the storefront, Stripe’s Payment Element puts cards, wallets and local methods into one component on your own checkout page, so the design stays yours. Link, Stripe’s one-click checkout for returning shoppers, is the nearest thing to Shop Pay, and it is worth confirming in your Stripe dashboard that it appears for your account and market. When the design can be Stripe’s, hosted Stripe Checkout is the fastest option of all.

Every other processor plugs into Medusa as a payment provider, a module that implements AbstractPaymentProvider: start a payment, authorize, capture, refund, handle webhooks.

ProcessorMedusa v2 supportWhat it takes
StripeBuilt inConfiguration and webhooks
PayPalCommunity plugins, I couldn’t confirm an official v2 moduleInstall a plugin or write a provider
Israeli processors (Cardcom, Tranzila, Grow, PayPlus)None that I foundA custom provider against their API or hosted payment page
Other regional methodsVariesUsually a custom provider

One trap deserves its own line. Many processors redirect the shopper to a hosted payment page and confirm by callback. The order must complete only when that callback confirms the payment, never when the shopper lands back on your site, and it is exactly the class of bug Medusa shops have hit with Stripe webhooks.

One shop, or a platform of shops

If the plan is a platform, many independent shops each with an owner and a team, start with one isolated engine per shop and add a thin platform layer on top. Medusa doesn’t support multi-tenancy natively. Its Store Module can hold several stores in one instance, but you build the links that tie products, customers and orders to each store yourself (Medusa Store Module).

ApproachHow it worksGoodHard
One instance per shop (where I’d start)Each shop gets its own Medusa server, worker and database, several per serverFull isolation, simple security, a big client moves to its own server easilyMore processes to update, each instance needs its own upgrade
One shared multi-tenant instanceAll shops in one database, every record tagged with a store, every query filtered by itCheapest at scale, one upgrade for everyoneOne missed filter leaks data between shops. Needs a senior developer and tests on every query
Marketplace startersMercur (Rigby) or community plugins such as @techlabi/medusa-marketplace-pluginVendor scoping already builtBuilt for one marketplace with many sellers, not many independent shops. Young projects

The platform layer itself is a short list: accounts and team invites, roles (owner, manager, staff) mapped to admin users in each shop’s engine, one-click provisioning of a new shop with its database, storefront, domain and SSL, subscription billing for shop owners through Stripe Billing, and support access with an audit trail instead of a shared password. Check the current Medusa release for built-in role permissions before building your own.

Medusa Cloud is the managed alternative: list plans of about $29, $99 and $299 a month plus per-seat and usage charges, according to a 2026 cost breakdown. That pricing fits one large store better than many small ones.

Do you need a developer, or can you build it with AI?

A first shop can be built with an AI coding assistant by someone who runs commands in a terminal, reads an error message, uses Git and follows a deployment guide. Medusa makes this easier than most engines: its docs ship Claude Code plugins and a docs MCP server, and every page is available as Markdown for AI agents (Medusa: build with LLMs). A multi-shop platform is a different story, it needs a senior developer owning the architecture and security.

TaskWith an AI assistantNeeds an experienced developer
Storefront design, product and category templatesYesNo
Installing Medusa, the Next.js starter and Stripe in test modeYes, following the docsNo
Content, SEO, schema, accessibilityYesNo
Server setup: Postgres, Redis, server and worker, backups, SSLPossible, slow and riskyAt least a review
Payment webhooks and order completionThe AI writes itReviewed and tested by someone who has shipped payments
A custom payment providerThe AI writes itReview required
Multi-tenant isolation, roles, provisioningNoYes, senior
Upgrades and incidents at 2amNoSomeone on call

The setup I’d recommend for a first project: the build runs with AI, and a senior Node.js developer reviews payments, infrastructure and security a few hours a week and is the one on call.

Time frames and running costs

The first shop is the expensive one, and every later shop reuses most of it. These are my estimates for a build with an AI assistant and a part-time reviewing developer, not quotes.

Work itemEstimateNotes
First shop, end to end (engine, storefront, Stripe checkout, deploy)4-8 weeksMost of it is design and checkout testing
Each later shop from a template1-2 weeksTheme, products, domain, payments
Migrating an existing Shopify store1-3 weeksProducts, customers, orders, 301 redirects, SEO checks
Apple Pay, Google Pay and Link through Stripe1-2 daysConfiguration and testing
PayPal2-5 daysDepends on the plugin
A local processor through a custom provider1-3 weeksHosted page, callbacks, refunds, sandbox testing
Transactional emails (order, shipping, password)2-4 daysResend or similar
Email marketing (Klaviyo, Mailchimp): customer sync, cart and order events3-7 daysAbandoned cart flows live in the email tool
Product search (Meilisearch or Algolia)3-7 daysMedusa has an InstantSearch adapter
Reviews, wishlists, upsells2-5 days eachThese are paid apps on Shopify
Shipping rates and labels1-2 weeksDepends on the carrier
Platform layer: accounts, teams, roles3-6 weeksSenior developer involved
One-click provisioning of a new shop2-4 weeksScripts first, then a button
Platform billing through Stripe Billing1-2 weeksPlans, invoices, failed payments

Running a small shop this way costs tens of dollars a month: a share of a $60 server hosting three to five shops comes to about $12-20, backups, CDN and monitoring add $0-15, transactional email $0-20, and card processing stays with the shop at Stripe’s US standard of 2.9% + 30¢. The real cost moves into engineering time.

Start with one shop

Don’t build the platform first. Build one real shop, prove it sells and costs what you expected, then generalise what worked.

Start with one shop, then turn it into a platform1. First shopWeeks 1 to 8One real shop liveStripe checkoutMeasure speed and cost2. TemplateWeeks 9 to 12Reusable themeSetup scriptsSecond shop launched3. Platform layerMonths 4 to 6Accounts and teamsRoles and billingSenior security review4. GrowMonth 7 onMigrate clientsOne-click new shopsMore integrationsReal orders paidShop 2 in two weeksIsolation tested
A four-phase plan from one shop to a platform, with a gate before each phase.

Each phase starts only when its gate is met: real paid orders on the first shop, a second shop launched from the template in two weeks, and tested data isolation before any two clients share a server. In phase one I’d measure four things: mobile Core Web Vitals against the same store on Shopify, checkout completion over the first 100 orders, the monthly running cost including hours, and whether the owner manages products and orders without calling anyone. A good first candidate is a new store with no Shopify history, or a small store willing to test, where the checkout risk is low.

What to ask a developer before you hire one

If you bring in a developer to review or build this, these are the questions and acceptance criteria I’d put in the brief.

  1. Production experience with Medusa v2, and with which payment providers.
  2. Their recommendation on Medusa versus Vendure for your plan, and why.
  3. How they confirm an order only after the processor’s webhook or callback, and how they test duplicate webhooks, out-of-order events, failed captures and refunds.
  4. Their upgrade policy: version pinning, a staging copy for every upgrade, a migration rehearsal, and how workarounds get removed when upstream fixes land.
  5. Hours for the review, the payment work and the upgrade policy, and a rate for on-call support.

Phase one is done when 50 test orders pass through every payment method with none stuck in pending, a server restart in the middle of checkout loses no orders, a restore from backup works on a fresh server, mobile Core Web Vitals pass on the home, category, product and checkout pages, and the owner manages products, orders and refunds without help.

Wondering whether stores are actually making this move? I looked at the 2026 numbers, the platform switches of the last 90 days and what 17 jewelry brands run on: Is AI sparking a Next.js ecommerce boom?

I also checked 33 well-known brands to see which ones run a custom Shopify theme and which built a separate front end: Shopify custom theme or headless?

If a standard Shopify theme covers what you need for now, start there. You can open a Shopify store yourself through our link. It is an affiliate link, so Shopify may pay us a commission at no extra cost to you.

Thinking about leaving Shopify or WooCommerce?

We look at your store, your apps and your fees, and tell you honestly whether a headless build pays off or whether you’re better off staying where you are.

Talk to us on WhatsApp Or contact us

Sources

Most comparisons and reviews come from agencies or vendors with a commercial interest. Official docs and GitHub issues are the primary sources.

  1. Medusa documentation: Store Module, Stripe Module Provider, Deployment, Build with LLMs
  2. Medusa GitHub issues: #11766, #13301, #14474, #15987, #17377
  3. Medusa v2 in production: dev.to, three bugs that each ate a weekend, KVY Technology, disadvantages of Medusa JS, KVY Technology, Medusa marketplace guide
  4. Medusa pricing: Build with Matija, cloud and self-host costs 2026
  5. Vendure: GitHub, admin UI docs, Vendure blog, best headless platforms 2026
  6. Platform comparisons: CodeNote, Medusa v2, Vendure v3 and EverShop, PkgPulse, Contra Collective
  7. Saleor: pricing, Slashdot reviews
  8. Payload: ecommerce overview
  9. Shopify Hydrogen: Ask Phill, Naturaily
  10. BigCommerce Catalyst: BigCommerce
  11. Swell and Commerce Layer pricing: TrustRadius

By the Ecom IL team. We have been building and marketing online stores since 2015. Updated October 2026.