Implementation Guide

Authentication

A unique access token should be created upon each SDK entry. In order to generate an access token, please refer to Valify's Authenticationarrow-up-right Documentation.

circle-exclamation

Importing

Import the module’s function in your file using the following line

import 'package:crossplatform_flutter_vidvdockit/crossplatform_flutter_vidvdockit.dart';

Configurations

The plugin builder is separated into two components.

Required Configurations

Initialize the required parameters as follows while adding the required configurations

  final String baseURL = ' '; //put your acctual base url here
  final String bundleKey = ' '; //put your actual bundle key here
  final String accessToken = ' '; //put your actual access token here
  final String document_type = '' //avaliable doc types: passport - egyNID - tunNID -dzaNID; 

Optional Configurations

Initialize the required parameters as follows while adding the desired configurations

Configurations Breakdown

This section shows the breakdown of all optional builder configurations.

1. Sets the base URL used by the SDK to communicate with your backend APIs.

2. Sets the access token required for authenticating SDK API requests.

3. Associates the session with your account using a unique bundle key.

4. Specifies the type of document to be captured by the SDK.

Available options:

  • passport

  • egyNID

  • tunNID

  • dzaNID

  1. The following line is where the user interface language is set.

circle-info

The currently supported languages are Arabic, English and French

  1. If this flag is set to true, the SDK performs additional data validations on the document. These validations are returned in the SDK response as flags, and you must implement your own handling logic based on these flags [Handling Document Verification Plus Flags in Code] , the SDK does not auto-reject or block the transaction.

View Document Verification Plus Breakdown here: [Understanding Document verification plus flag]arrow-up-right

  1. If this flag is set to true, the SDK detects potential physical or digital manipulation in the National ID. These validations are returned in the SDK response as flags, and you must implement your own handling logic based on these flags [Handling Advanced Confidence Flags in Code] arrow-up-right, the SDK does not auto-reject or block the transaction.

View Advanced Confidence Breakdown here: [Understanding Advanced Confidence flag]arrow-up-right

  1. If the following line is set to true, the captured image will be displayed for the user.

  1. If the following line is set to true, the SDK will automatically enable manual capture if it detects that the user is unable to autocapture card.

  1. If the following line is set to true, a screen is added to the user flow that displays the images captured and the OCR result to the user.

  1. If the following lineis used you, you have the flexibility to control how document images are captured.

  1. If the capture_mode is set to auto_after, this configuration is required to specify the number of seconds before the SDK switches from automatic capture to manual capture mode.

  1. The following line is optional and can be used to set your company's branding color to the SDK's user interface.

  1. If the following line is set to true, the Valify logo will be hidden from the SDK user interface.

  1. The following line can be used to display a custom logo instead of the default Valify logo. The value should be a base64-encoded image string.

  1. The following line is optional and can be used to set any headers that may be required for purposes specific to your application. Any headers set will be sent along with each API call made by the SDK.

  1. The following line is optional and can be used to set an SSL certificate that may be required for purposes specific to your application.

  1. Adds optional feature flags that enhance the SDK's processing capabilities. These extras allow you to enable advanced functionalities during EGY NID document processing:

  • advancedConfidence → Enables Physical manipulation detection

  • professionAnalysis → Enables profession categorization

  • documentVerificationPlus → Enables document validation

  1. If the following line is set to true then you need to enable the location permission to your application to use collect user info option

Parameter Declaration

Declare the SDK parameters with the configuration variables previously created

Start the SDK

To start the DocKit SDK, call the start method with your configuration arguments:

Last updated