Skip to main content

Guest vs Wallet Experience

The session object is used to determine whether the wallet or guest experience will be displayed for the user. Here is a sample session object:

Session Object Sample
{
"payment": {
"merchantTransactionId": "xxx-xxx-xxx-xxx-xxx",
"amount": 1500,
"authorizeCard": true,
"metaData": {}
},
"customer": {
"email": "<email>",
"enterpriseId": "<enterpriseId>",
"hsid": "<hsid">,
"metaData": {
"userId": "<userId>"
}
}
}

wallet experience is displayed if one of the following is provided:

  • customer.enterpriseId has a valid value
  • customer.hsid has a valid value
  • (or) customer.metadata is a non-null object with valid Merchant Identifiers (MCID)

otherwise guest experience is displayed.