Stakk

Embeds

Sell a Stakk product from any page.

Load the script once. A button with the product id opens checkout for that shop.

<script src="https://stakk.cc/embed.js"></script>

<button type="button" data-stakk-shop="sable" data-stakk-product="sable_atelier-lifetime">
  Buy now
</button>

data-stakk-shop is the shop slug. data-stakk-product is the product id from Dashboard → Products. Optional attributes on the same button: data-stakk-coupon, data-stakk-email, data-stakk-quantity, data-stakk-gateway, and data-stakk-return-url.

Stay in Embed opens a modal on the page. Hosted Checkout, set under Dashboard → Store → Embed, sends the buyer to /s/{slug}/checkout/{productId} and returns them to data-stakk-return-url after payment.

Custom storefront

Pro and Business can publish their own shop home from Dashboard → Store → Theme. Upload a .zip that contains index.html. One wrapping folder is fine. The zip is stored as static files. Stakk does not compile it.

The page runs on its own origin, so it cannot read the Stakk session. Load the catalog from the shop, then ask the shop page to open checkout.

<script src="https://stakk.cc/storefront.js" data-stakk-shop="sable"></script>
<button type="button" onclick="StakkStore.buy('sable_atelier-lifetime')">Buy</button>

StakkStore.load() fills StakkStore.shop, StakkStore.products, and StakkStore.termsHtml from GET /api/v1/storefront/{slug}. StakkStore.buy(productId) opens the Stakk embed. StakkStore.buy(productId, { mode: "page" }) opens /product/{id}. data-stakk-purchase="page" makes page mode the default.

Use relative paths for your CSS, JavaScript, and images. Keep product prices and terms in the API response so a new upload is not required when the catalog changes.

Live on Sable

This is the real embed for the local test shop, product Atelier Lifetime.

Sable · test shop

Atelier Lifetime

EUR 79. Opens the real Sable checkout embed for this product.