Passing Logged-In Customer Details
Passing Logged-In Customer Details to Popin
This document explains how to programmatically pass logged-in customer information to the Popin widget to streamline the user experience by skipping the initial data entry screen.
π When to Use This
Use this method if:
The customer is already logged in.
You have access to their name and either a mobile number or email.
You want the Popin widget to open directly, bypassing the customer detail form.
π οΈ Required Fields
Use the Popin("captured", {...}) function to pass customer details to the widget.
name
β Yes
Full name of the customer. Mandatory.
mobile
β οΈ Yes*
Required if email is not provided. Must be passed without country code.
email
β οΈ Yes*
Required if mobile is not provided.
country
β No
Optional. Defaults to +91 (India) if not specified.
π Important:
nameis always required.You must provide either
mobileor
mobilemust be sent without the country code prefix (+).
π§© Implementation
Invoke the Popin("captured", {...}) method before calling Popin("open").
β
Example:
π Sample Scenarios
Case 1: Name and Mobile Provided
Case 2: Name and Email Provided
Case 3: Full Info with Country Code
π Notes
If
countryis omitted, it defaults to +91 (India).Ensure
mobileis passed without the country code.Calling
Popin("open")afterPopin("captured")will bypass the customer input form and load the widget directly to the next screen.
Last updated