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.

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.
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).
| Engine | Stack and API | License | Next.js storefront | Best for | Watch out for |
|---|---|---|---|---|---|
| Medusa v2 | TypeScript, Node.js, REST + JS SDK, Postgres + Redis | MIT | Official starter, App Router | TypeScript teams, custom logic, owning the platform | Needs server, worker and Redis in production. Thin plugin ecosystem. Docs trail the code |
| Vendure v3 | TypeScript, NestJS, GraphQL, Postgres, MySQL or SQLite | GPLv3, paid commercial license available | Official Next.js storefront in progress, Remix and Qwik starters today | Strict typing, B2B, multi-channel, long-lived codebases | GPLv3 review if you run it as SaaS. Angular admin replaced by a new React dashboard |
| Saleor | Python, Django, GraphQL | BSD-3 | Official Next.js storefront | Multi-channel, multi-currency and multi-warehouse out of the box | Python backend next to a TypeScript frontend. Saleor Cloud is expensive |
| EverShop | TypeScript, Express, React, REST + GraphQL | GPLv3 | Bundled React storefront, or headless | Fastest integrated launch for a small D2C shop | Smaller team and community. Thinner docs for multi-currency and B2B |
| Payload CMS ecommerce | TypeScript, runs inside Next.js | MIT | It is a Next.js app | Content-heavy brands that want CMS and shop in one app | Ecommerce plugin is in beta. No native shipping, tax or subscriptions. Stripe only |
| Headless WooCommerce | WordPress + WPGraphQL or the Store API | GPL | Build your own | Clients who already know the WordPress admin | Two systems to maintain, and the plugin conflicts stay |
| Shopify Hydrogen or Next.js on Shopify | Shopify Storefront API | Shopify SaaS | Hydrogen is React Router based, Next.js Commerce works too | Brands staying on Shopify that want a custom front | You still pay Shopify. It is a custom theme, not your own platform |
| BigCommerce Catalyst | Next.js on the BigCommerce GraphQL API | Catalyst is open source, BigCommerce is SaaS | It is Next.js | Visual editing (Makeswift) on a SaaS backend | Still a SaaS subscription. Few independent reviews |
| Swell, Commerce Layer | Hosted headless APIs | SaaS | Bring your own | Headless without running servers | Paid 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.
| Processor | Medusa v2 support | What it takes |
|---|---|---|
| Stripe | Built in | Configuration and webhooks |
| PayPal | Community plugins, I couldn’t confirm an official v2 module | Install a plugin or write a provider |
| Israeli processors (Cardcom, Tranzila, Grow, PayPlus) | None that I found | A custom provider against their API or hosted payment page |
| Other regional methods | Varies | Usually 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).
| Approach | How it works | Good | Hard |
|---|---|---|---|
| One instance per shop (where I’d start) | Each shop gets its own Medusa server, worker and database, several per server | Full isolation, simple security, a big client moves to its own server easily | More processes to update, each instance needs its own upgrade |
| One shared multi-tenant instance | All shops in one database, every record tagged with a store, every query filtered by it | Cheapest at scale, one upgrade for everyone | One missed filter leaks data between shops. Needs a senior developer and tests on every query |
| Marketplace starters | Mercur (Rigby) or community plugins such as @techlabi/medusa-marketplace-plugin | Vendor scoping already built | Built 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.
| Task | With an AI assistant | Needs an experienced developer |
|---|---|---|
| Storefront design, product and category templates | Yes | No |
| Installing Medusa, the Next.js starter and Stripe in test mode | Yes, following the docs | No |
| Content, SEO, schema, accessibility | Yes | No |
| Server setup: Postgres, Redis, server and worker, backups, SSL | Possible, slow and risky | At least a review |
| Payment webhooks and order completion | The AI writes it | Reviewed and tested by someone who has shipped payments |
| A custom payment provider | The AI writes it | Review required |
| Multi-tenant isolation, roles, provisioning | No | Yes, senior |
| Upgrades and incidents at 2am | No | Someone 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 item | Estimate | Notes |
|---|---|---|
| First shop, end to end (engine, storefront, Stripe checkout, deploy) | 4-8 weeks | Most of it is design and checkout testing |
| Each later shop from a template | 1-2 weeks | Theme, products, domain, payments |
| Migrating an existing Shopify store | 1-3 weeks | Products, customers, orders, 301 redirects, SEO checks |
| Apple Pay, Google Pay and Link through Stripe | 1-2 days | Configuration and testing |
| PayPal | 2-5 days | Depends on the plugin |
| A local processor through a custom provider | 1-3 weeks | Hosted page, callbacks, refunds, sandbox testing |
| Transactional emails (order, shipping, password) | 2-4 days | Resend or similar |
| Email marketing (Klaviyo, Mailchimp): customer sync, cart and order events | 3-7 days | Abandoned cart flows live in the email tool |
| Product search (Meilisearch or Algolia) | 3-7 days | Medusa has an InstantSearch adapter |
| Reviews, wishlists, upsells | 2-5 days each | These are paid apps on Shopify |
| Shipping rates and labels | 1-2 weeks | Depends on the carrier |
| Platform layer: accounts, teams, roles | 3-6 weeks | Senior developer involved |
| One-click provisioning of a new shop | 2-4 weeks | Scripts first, then a button |
| Platform billing through Stripe Billing | 1-2 weeks | Plans, 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.
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.
- Production experience with Medusa v2, and with which payment providers.
- Their recommendation on Medusa versus Vendure for your plan, and why.
- 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.
- Their upgrade policy: version pinning, a staging copy for every upgrade, a migration rehearsal, and how workarounds get removed when upstream fixes land.
- 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 usSources
Most comparisons and reviews come from agencies or vendors with a commercial interest. Official docs and GitHub issues are the primary sources.
- Medusa documentation: Store Module, Stripe Module Provider, Deployment, Build with LLMs
- Medusa GitHub issues: #11766, #13301, #14474, #15987, #17377
- Medusa v2 in production: dev.to, three bugs that each ate a weekend, KVY Technology, disadvantages of Medusa JS, KVY Technology, Medusa marketplace guide
- Medusa pricing: Build with Matija, cloud and self-host costs 2026
- Vendure: GitHub, admin UI docs, Vendure blog, best headless platforms 2026
- Platform comparisons: CodeNote, Medusa v2, Vendure v3 and EverShop, PkgPulse, Contra Collective
- Saleor: pricing, Slashdot reviews
- Payload: ecommerce overview
- Shopify Hydrogen: Ask Phill, Naturaily
- BigCommerce Catalyst: BigCommerce
- Swell and Commerce Layer pricing: TrustRadius
By the Ecom IL team. We have been building and marketing online stores since 2015. Updated October 2026.