Stakk Docs
Embed

Embed attributes

HTML attributes the Stakk embed script reads from your buy button.

Put these on the same element as data-vinext-product. The script also accepts data-vinext-* and data-sellix-* aliases.

Product

AttributeDescription
data-vinext-productProduct ID. Required. Aliases: data-vinext-product-id, data-vinext-product, data-sellix-product
data-vinext-shopShop slug or ID. Optional if Stakk.init({ shopId }) already ran
data-vinext-variantVariant ID
data-vinext-quantityQuantity. Defaults to 1

Checkout prefills

AttributeDescription
data-vinext-couponCoupon code to auto-apply. Alias: data-vinext-coupon-code, data-sellix-coupon
data-vinext-emailPre-fill customer email
data-vinext-gatewayPreferred method, for example BITCOIN, STRIPE, PAYPAL
data-vinext-themelight, dark, or auto
data-vinext-localeCheckout locale, for example de
data-vinext-affiliateAffiliate code
data-vinext-return-urlRedirect after a successful payment

Custom fields

Product custom fields (username, Discord, license seat, and so on) can be declared two ways.

Per field — the suffix is the field name:

<button
  data-vinext-product="PRODUCT_ID"
  data-vinext-field-username="florian"
  data-vinext-field-discord="buyer#0001"
>
  Buy now
</button>

JSON object when you have several:

<button
  data-vinext-product="PRODUCT_ID"
  data-vinext-custom-fields='{"username":"florian","license_seat":"main"}'
>
  Buy now
</button>

data-vinext-checkout-{key} is also accepted, matching Sellix-style checkout keys.

Widget

<div
  data-vinext-widget
  data-vinext-product="PRODUCT_ID"
  data-vinext-widget-label="Buy now"
></div>

The script injects a buy button into that element.

Hosted query params

The same prefills work on the checkout URL if you open /embed/checkout yourself:

/embed/checkout?shop=SHOP&product=PRODUCT_ID&coupon=SAVE10&email=buyer@example.com&qty=2