Skip to main content

Embed Checkout

Komerza-style buy buttons for sites outside a Join Markt theme. Dashboard product page → Embed Checkout generates snippets. For in-theme product grids, use Shortcodes & Tags (Nunjucks/Vite) instead.

Quick start

Demo (local): /embed/demo.html?productId=…&variantId=…

Globals

Alias: MarktEmbed === Markt.

Data attributes


Server API

POST /api/embed/checkout (CORS *)
Response: { "orderId", "url" }url includes ?embed=1&theme=….

Affiliates & CSP

  • SDK reads ?ref= then cookie markt_affiliate
  • Merchant CSP needs frame-src / script-src for your Join Markt origin
  • Checkout/embed allows frame-ancestors * for the modal iframe
Save the product once before shipping snippets so variant UUIDs stay stable.