Triggering Identity Verification in a Digital Journey

The Onfido SDK is responsible for capturing and uploading photos or videos. The Onfido automation processor can be added to a Digital Journey and further enhanced via FintechOS Studio based on the customer's business needs.

Follow the below steps when adding this automation processor to your Digital Journey:

  1. In Innovation Studio, open the customer's form driven flow in the editor and setup the following base code (Advanced > Before Events)
  2. Copy
    ebs.importStyleSheet('FTOS_DFP');
    ebs.importStyleSheet('FTOS_DFP_II');

    formData.FlowSettings = "OnfidoFlow"; //name of your onfido flow settings
  3. Navigate to the form or form step where you wish to initiate the identity check.
  4. In the After Events tab, add code based on the model below:
    Copy
    // For Ecosystem SysPack 2.5.0 and later, use:
    var dfpHelper = ebs.importClientScript('FTOS.ECOS.Utils');

    // Prior to Ecosystem SysPack 2.5.0, use:
    // var dfpHelper = ebs.importClientScript('FTOS.DFP');

    var componentName = 'FTOS_DFP_Onfido'; //name of the component

    var recordId = formData.id;
    var flowSettingsName = formData.FlowSettings;



    var params = {};
    params.flowSettingsName = flowSettingsName;
    params.processorSettingsType = 'Onfido';
    params.processorSettingsName = 'Onfido_Settings'; //name of the processor setting that you created

    ebs.callActionByName("FTOS_DFP_FlowProcessorSettingsByType", params, function (f) {
        var processorSettingsId = f.UIResult.Data.ProcessorSettingsId;
        dfpHelper.loadComponent(componentName, processorSettingsId, recordId, false);
    });
  5. Click Save and Close to save your digital journey.