merce.STACK
merce.STACK
Skip to content
PricingWhat's new
Log inGet started
{}Developers
GuidesAPI referenceChangelogGet API keys →
  • Get started

    • Quickstart
    • Keys & authentication
  • Storefront

    • Products & catalog
    • Carts
    • Checkout & payment
    • Customer accounts
    • Digital products
    • Without a build step
    • Bookings
    • Courses
    • Drop-in components
  • Server API

    • Server API
    • Customers
    • Payment links & transactions
    • Balance & payouts
    • Classes & students
    • Node SDK
  • Email API

    • Email API
    • Sending email
    • Delivery events
  • Events & errors

    • Webhooks
    • Errors
  • Reference

    • API reference
    • Changelog

Storefront

Without a build step

A script tag and a data attribute. For WordPress, Webflow and plain HTML.

Most of the internet is not a React application. If your site is WordPress, a Webflow export, a theme you are migrating, or hand-written HTML, you do not need a bundler to sell through it.

HTML
<script src="https://cdn.mercestack.com/v1/commerce.js"></script>
<script>
  Mercestack.init({ publicKey: "pk_live_…" });
</script>

<button data-mercestack-buy="var_123">Buy now</button>

<button data-mercestack-add="var_123"
        data-mercestack-quantity="2">Add 2 to basket</button>

<a href="/cart">Basket (<span data-mercestack-cart-count>0</span>)</a>

Buttons are bound with a single delegated listener on the document, so products rendered *after* the page loads — infinite scroll, a filter that replaces the grid, a quick-view modal — work without rebinding anything.

  • —Buttons disable themselves while the request is in flight, so a double tap does not add two.
  • —Any [data-mercestack-cart-count] element is kept in step automatically.
  • —Failures fire a mercestack:error DOM event on the button rather than vanishing into an unhandled rejection.
← PreviousDigital productsNext →Bookings
Create a workspaceTalk to usPricing

One workspace for everything your business runs on — your team, customers, store, marketing and payouts in one place.

Get started

Product

  • All products
  • Pricing
  • What's new
  • Security

Resources

  • Documentation
  • Guides
  • Use cases
  • Blog
  • Get support

Company

  • About
  • Careers
  • Contact us
  • Talk to the team

Legal

  • Privacy
  • Terms
  • Cookie policy
  • GDPR
  • Report a vulnerability

© 2026 Mercestack. All rights reserved.

Mercestack StructureOS

mercestack