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.

Field
Required
Description

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:

  • name is always required.

  • You must provide either mobile or email.

  • mobile must 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 country is omitted, it defaults to +91 (India).

  • Ensure mobile is passed without the country code.

  • Calling Popin("open") after Popin("captured") will bypass the customer input form and load the widget directly to the next screen.

Last updated