Skip to main content

Add custom data

Add custom data when initializing the button

Pass the following parameter to the init function

customData: { proivder: "<provider-name>", storeId: "<store-id>", token: "<token>", productId: "<product-id>" }
  • provider - Your provider name you got from Minta
  • storeId - The store id you want us to fetch the data for
  • token - The token you provide to us for access your API to fetch the relevant data
  • productid - In case you desire to open the window with video for a specific product

Example

<script>
window.minta.init({
apiKey: "YOUR_API_KEY",
targetElementId: "target-id",
customData: {
provider: "<provider-name>", // Required
storeId: "<store-id>", // Required
token: "<token>", // Required
productId: "<product-id>", // Optional
}
})
</script>