ScanPayGo Security Check

In this article

To open the ScanPayGo - Security Check Profiles page

Age Groups

Monthly Purchases

Product

Visit Days

About the Security Check function

Security Check Profile

A function is available to calculate if a random check of a basket should be performed. The function works on the ScanPayGo - Security Check Profile.

The calculations are based on four dimensions which you can edit to affect the probability of a check being done. These dimensions are Age Groups, Monthly Purchases, Product, and Visit Days.

For each dimension you can enter a Random Factor (0-100), which gives the probability you want the dimension to have as a percentage. The highest Random Factor from all dimensions in a profile determines the final Random Factor that is used for the random check. The function can be used within the LS Central App and is used through the SecurityCheckProfile Web Service.

Note: All calls to this function are logged and stored in the ScanPayGo Security Check Log table. You can view and filter the log in the ScanPayGo Security Check Log page in LS Central BackOffice.

To open the ScanPayGo - Security Check Profiles page

  • Click the icon, enter ScanPayGo - Security Check Profiles, and select the relevant link to open this page.

On this page, a profile is created either for a single Store or a Store Group. The table below describes the fields on the page:

Field Description
Type (All, Group, Store). All Stores and Store Group.s
Code Select the corresponding Store or Group.
Description This field is filled automatically.
Security Profile Code Here you enter a unique identifier for the profile.
Profile Description Description of the profile.
Always Send Items Specifies if Customer Order Item lines should be included in the response when no check is required.

When the profile has been created, you can enter the data for the four different dimensions for the profile (see below). To edit the dimensions, click the Related action on the ScanPayGo - Security Check Profile page.

Age Groups

Here you can enter Random Factors for different age groups. Age groups are used when a Customer Order is linked to a Membership Card. Then the age is calculated from the member contact's birth date, if it is known.

Field Description
Code Enter a unique code for the age group line.
From Age Enter a numeric value for "age from". Zero or blank means from age 0.
To Age Enter a numeric value for "age to". Zero means infinity.
Random Factor Enter an integer value between 0 and 100 meaning probability to enter a random check.

Monthly Purchases

Here you can enter Random Factors for different number of Customer Orders linked to a Membership Card. Active Customer Orders and posted Customer Orders are counted one month backwards from the date when the calculation is done.

Field Description
Code Enter a unique code for the Monthly Purchases line.
Purchase From Enter a numeric value. Zero or blank means from 0 purchases.
Purchase To Enter a numeric value. Zero means infinity.
Random Factor Enter an integer value between 0 and 100 meaning probability to enter a random check.

Product

Here you can enter Random Factors for Products or Items.

Field Description
Product Type Here you can select Item, Product Group, Item Category, All, or Special Group.
No. Enter a corresponding Item number, Product Group, Item Category, or Special Group. For Product Type All, this field is left empty meaning all items.
Description This field is automatically filled based on the values in Product Type and No.
Random Factor Enter an integer value between 0 and 100 meaning probability to enter a random check.

Visit Days

Here you enter Random Factors for different time periods during the day when the calculation is performed.

Field Description
Weekday Select a specific day of the week. Select Day for all days in the week, Weekday meaning Monday to Friday, or Weekend for Saturday and Sunday.
Time From Enter "time from" for the line's period, for example 11:30 for 11:30 AM or 23:30 for 11:30 PM.
Time To Enter "time to" for the line's period.
Random Factor Enter an integer value between 0 and 100 meaning probability to enter a random check.

About the Security Check function

The Security Check function checks several things regarding the customer (membership card number) and the Customer Order (Customer Order document ID). The highest Random Factor found is used to determine the likelihood of being checked. The Random factor can be from zero to one hundred.

The calculation is performed in this order:

Security Check Profile

Security Check Profiles are linked to a Store, Store Group, and All. Stores are linked to Store Groups and ordered by the field Level. The highest level is the highest priority when selecting a Store Group to use.

The Security Check Profiles are checked for matching Store, Store Group, or All. The Security Profile Code is used for the following checks.

Age Check

If the Customer Order has a member card number, the age of the member (or customer) is checked. If a definition is found, the Random Factor is returned.

Number of Purchases Check

If a member card number is stored in the Customer Order, a calculation is done of how many purchases or Customer Orders the member contact has made in the last month. If there is a definition for that number, the Random Factor is returned.

Product Check

For each item in the Customer Order, a check is done to see if a line is defined for the item in the Product section of the Security Check Profile. If the item has multiple definitions, the priority is Product Type = Item, Product Group, Item Category, Special Group, All. If a definition is found, the Random Factor is returned and a further check is not done.

Visit Days Check

Finally, a check is done based on the day and time when the check is performed. The priority is Weekday = Current day (Monday ... Sunday), Weekday, Weekend day, Day). If a definition is found, the Random Factor is returned and a further calculation (lower priority) is not done.

Note: When the Random Factor that is returned is 100, further calculations are not performed and a Do check is returned.