Migration Guide for Web SDK (21.2) – GBG IDscan Documentation

Migration Guide for Web SDK (21.2)

Migration Guide for Web SDK Customers using their own Templates for the Web SDK

Please note: This migration guide is for customers that use their own templates. Please consider the following changes that may affect your integration.

Checkbox to switch from Capture to File Upload

If you have implemented the ability for your users to switch from camera capture to file upload (or vice versa), the checkbox functionality has now been removed and this functionality will no longer work as expected. The functionality is now a hyperlink button that a user will now select to switch between the two providers.

Option 1: Implement a button – if you decide that you want to implement a button instead of the checkbox now, you will need to switch out the checkbox functionality for a button that has the following structure:

<button data-jcs-element="gateway__upload__toggle" class="button button--tertiary button--worker" aria-label="Button Title">
        <div data-jcs-element="gateway__upload__toggle__upload__label">
            {{MANUAL_PHOTO_UPLOAD_TOGGLE_FALSE}}
        </div>
        <div data-jcs-element="gateway__upload__toggle__camera__label">
            {{MANUAL_PHOTO_UPLOAD_TOGGLE_TRUE}}
        </div>
    </button>

The element “gateway__upload__toggle” is the button that will have the click event attached. And the other two elements, the “gateway__upload__toggle__upload__label” and “gateway__upload__toggle__camera__label” are the two elements that will be hidden and shown depending on the provider (file upload or camera capture) that hold the different translations strings that can be customized.

Option 2: Keep your current checkbox in place – if you want to keep the UI checkbox functionality in place, you will have to make sure that the button functionality is hidden from the UI, but implement logic to connect the button up with the behaviour of the checkbox

Capturing state for Smart Capture

The element ‘Camera_Condition_Capturing’ is no longer available and has been removed in the latest version. If you were dependent on this logic, you will need to change this logic, so the behaviour of your journey is no longer reliant on the ‘Capturing’ condition and remove this from the UI (if being shown currently). Please see below for example of code to remove from your template:

data-jcs-element=”camera__condition__capturing”

<span data-jcs-element="camera__condition__capturing" class="camera-condition camera-condition--capturing">{{CAMERA_CONDITION_CAPTURING}}</span>

‘State’ element is no longer available

The ‘Info_Journey_State’ is no longer available in the latest version of the Web SDK. If you were dependent on this logic, you will need to change this logic so the behaviour of your journey is no longer reliant on this.

data-jcs-element="info__journey__state"

Example of all possible states that were available:

MemberValue
ENDED“ENDED”
INPROGRESS“INPROGRESS”
STARTED“STARTED”
Was this page helpful?