Web integration
Popin Video Shopping Integration Guide
Overview
Brand Panel Access
Installation
Script Example
<script>
let popIn = document.createElement('script')
popIn.setAttribute('src', 'https://widget01.popin.to/js/widget.js')
document.body.appendChild(popIn)
popIn.onload = () => {
popInWidgetInit({
token: "123456", // Replace with your actual token
mode: "hidden", // Optional: hide the widget icon
captured: { // Optional: pre-fill for logged-in users
name: "John Doe",
mobile: "9876543210",
email: "john@lorem.com"
}
});
}
</script>API Methods
1. Popin('sale', { orderId, amount })
Popin('sale', { orderId, amount })Name
Required
Type
Description
2. Popin('group', { groupId })
Popin('group', { groupId })Name
Required
Type
Description
3. Popin('open', { groupId })
Popin('open', { groupId })Name
Required
Type
Description
4. Popin('close')
Popin('close')Sync Products with Popin
Endpoint
Headers
Payload Structure
Field Descriptions
Field
Required
Type
Description
Best Practices
Last updated