0.0.23 • Published 2 years ago

pr-beta2 v0.0.23

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

ADD SCRIPT

  • First you must add the following tag in the html where you want the sdk to appear.
  • The project must use the npm package management system.
  • First install de pachage: npm i pr-beta2 **PABLO, EN LA LINEA DE ARRIBA DEBÉIS METER EL "npm i..." DEL REPOSITOIO NPM VUESTRO**

  • Example of how to get the auth token

const CLIENT_ID = "YOUR-CLIEN-ID";
const CLIENT_SECRET = "YOUR-CLIEN-SECRET";
const country = 'ES';
// THIS URL IS FOR PRE
const url = 'https://internetclient.onboarding.dca.pre.api.pagonxt.com';
const grant_type = "urn:ietf:params:oauth:grant-type:jwt-bearer";
const JWT = 'eyJraWQiOiJvbmJvYXJkaW5nS2V5cmVuZXciLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJvbmJvYXJkaW5nIiwiaXNzIjoib25ib2FyZGluZyIsImlhdCI6MTUxNjIzOTAyMiwiZXhwIjoxNjc3MzM0ODc2fQ.daul8OH2L5I90GAvnMM6UONYF66VV7QSY8ae1Oj4DXpieYGttXsars3jTb_zYpjT7_012WZniHJeqh3vNxIOmWT--PENUiY2ThZ9U6MNPErbINau-S0NHv5j1J-Tn6XvehBZqY8jPhMuEvYMtydSekm_-IRkNMhQp3yn0OESklBLhaWBD6dt5O7ScakJ8a8Xcsp7_Np3AioJG_U8WTJcBqPJdUt5UcPd85F9u1ruEyAWVQ-vLL4iIH3zKeFUsg12pz3jHuYnwMutAkqB29OHxEiZqAEGXPZke7BTFpN6Hoc9MAa6LJUsHoE8skihakJGqSLyEcF_p2JqYaB5A9IfOQ';

async function getAuthToken() {
    const basic = CLIENT_ID + ':' + CLIENT_SECRET
    const bytes = encode_utf8(basic)
    const encoded = btoa(bytes)
    const authorization = 'Basic ' + encoded
    var myHeaders = new Headers();
    myHeaders.append("Content-Type", "application/x-www-form-urlencoded");
    myHeaders.append("Accept", "application/json");
    myHeaders.append("Authorization", authorization);
    
    var urlencoded = new URLSearchParams();
    urlencoded.append("country", country);
    urlencoded.append("redirect_uri", url);
    urlencoded.append("grant_type", grant_type);
    urlencoded.append("assertion", JWT);
    
    var requestOptions = {
      method: 'POST',
      headers: myHeaders,
      body: urlencoded
    };
    
    try {
        const response = await fetch(url+ "/oauth/token", requestOptions);
        return await response.text();
    } catch (error) {
        return console.log('error', error);
    }
}

function encode_utf8(s) {
  return unescape(encodeURIComponent(s));
}
  • Add this html tag.
<div id='target' style="height: 100vh;"></div>
  • The next step you have to do is add the following script in your html file.
<script type="module">
        import {SDK} from '/node_modules/pr-beta2/lib/index.min.js'
        // Here it will return the score obtained by the sdk or a failure
        const sdkSantander = new SDK(score => {
            console.log(score)
        }, err => {
            console.log(err)
        });
        // This is the basic initial configuration 
        // In this case, the document capture is prepared for the country Spain and all the Spanish 
        //documents admitted and selfie alive proof with two head nods by default.
        sdkSantander.generateConfig({
                url: 'https://internetclient.onboarding.dca.pre.api.pagonxt.com',
                token: 'AUTHORIZATION-TOKEN',
                targetSelector: '#target',
                documentType: 'biometric_face',
                identityType: 'ES',
                country: 'ES',
                client_id: 'YOUR-CLIENT-ID',
                documentCaptureOptions: {},
                selfieAliveOptions: {}
        })
    </script> 

CONFIGURATION THE COUNTRY, DOCUMENT TYPE AND INDENTITY TYPE.

  • In the script "sdkSantander.generateConfig" you can add the following variables.
    • url: Url of service.
    • token: Add the authorization token.
    • targetSelector: The target selector where the sdk show up.
    • documentType: There are two options.
      • document_validation: capture the document only.
      • biometric_face: capture the document and selfie alive proff.
    • identityType: One type of document or all the documents of a country adding the country.
    • country: Countries that indicate at the end of the document.
    • client_id: Your client id.
    • client_secret: Your client secret.
    • documentCaptureOptions: To add document capture configurations.
    • selfieAliveOptions: To add selfie alive proof configurations.

CONFIGURATION DOCUMENT CAPTURE

There is a list of the different customizable parameters of the SDK. The variables must be added in the script "sdkSantander.generateConfig" in the var "documentCaptureOptions"

  • blurDetectorActive (Boolean): Whether to use a blur detector when document image has been capture.
  • detectionTimeout (Number) : Duration in milliseconds after which VDSelfie should stop recording and shut down. Max is 300000, min 60000.
  • documents (Array of strings): Each unique string represents either a TD1 document type ("ES*DrivingLicense_2013") or a country (“ES”, all supported TD1 document types for that country). See Appendix-A for the list of supported document types and country codes. This setting can not be used in conjunction with _documentsMinimal*, passport, paperDocumentItaly and documentsPaper. Examples: documents: ‘ES2’ -> All Spain supported documents; documents: ‘ES2_ID’ -> Spain Identity Documents; documents: ‘ES_DrivingLicense_2004’
  • documentsMinimal (Array of strings): Works the same way the documents configuration setting does, except that it will capture the obverse only. Useful for documents that contain information on one physical side only, or for two-sided documents that support single-side processing. This setting can not be used in conjunction with documents, passport, paperDocumentItaly and documentsPaper. Example: documentsMinimal: ‘AT_IDCard_2010’
  • documentsPaper (Array of strings): Works the same way the documents configuration setting does, and is used for large-format drivers’ licenses. This setting can not be used in conjunction with documents, documentsMinimal, paperDocumentItaly and passport. Example: documentsPaper: ‘AT_DrivingLicense_2004’
  • passport (Array of strings): Works the same way the documents configuration setting does. Used for capture of passports, TD3 format. This setting can not be used in conjunction with documents, documentsMinimal, paperDocumentItaly and documentsPaper. Example:passport: ‘XX_Passport_YYYY’
  • paperDocumentItaly (Array of strings): Works the same way the documents configuration setting does. Used for capture of IT_IDCard_2017, ID_IT format. This setting can not be used in conjunction with documents, documentsMinimal, documentsPaper and passport. Example: paperDocumentItaly : 'IT_IDCard_2017'.
  • logEventsToConsole (Boolean): Whether or not to log events (camera start, etc) to the console.
  • targetSelector (String or Object): The (unique inside the HTML document) CSS selector of the element VDSelfie should attach to. Object created by HTMLElement method selection like getElementByID could be passed too.
  • manualCaptureEnableDelay (Number): Duration in milliseconds after which VDDocument allows manual capture by touch or click event.
  • docLibHelperPath (String): Set custom path to load docLibHelper library in VDDocument, always relative to index.html.

Text Configuration

  • continueText (String): Label for the button that allows the user to click and move to the next stage.
  • infoAlertSingleSidedDocument (String): Text of "heads-up" dialog warning the user that detection of one-sided document is about to start.
  • infoAlertTwoSidedDocument (String): Text of "heads-up" dialog warning the user that detection of two-sided document is about to start.
  • infoReviewBlurImageText (String): Text to display to let the user being informed about blurriness in the captured image.
  • infoReviewImageText (String): Text to display to let the user review the captured image.
  • manualCaptureText (String): Text to let the user know that capture can be triggered manually, on desktops and laptop devices.
  • manualCaptureTextMobile (String): Text to let the user know that capture can be triggered manually, on mobile devices.
  • obverseNotFoundText (String): Text with instructions to user during detection of obverse of document.
  • reverseNotFoundText (String): Text with instructions to user during detection of reverse of document.
  • passportNotFoundText (String): Instructions to user during detection of passport.
  • passportMRZError (String): Text to display when many characters of MRZ passport are not visible.
  • repeatText (String): Label for the button that allows the user to repeat detection, if the captured image was not clear.
  • fontSize (Number): Set a number that will represent the percent of the calculated font size, if the number is positive it will increase the font size that porcentage, but if it is negative it will decrease it.

Style Configuration

Colors must be in hexadecimal.

  • borderColorCenteringAidDefault (String): Border color of the centering aid, when detection is active but no document is being "seen" yet.
  • borderColorCenteringAidDetecting (String): Border color of the centering aid, when a document is being "seen".
  • borderColorCenteringAidDetectingSuccess (String): Border color of the centering aid, when a document has been successfully captured.
  • borderColorCenteringAidInactive (String): Border color of the centering aid, before detection process starts, or when the sdk asks for the device to be used in portrait mode.
  • confirmationColorTick (String): Tick color icon when capture success.
  • confirmationDialogBackgroundColor (String): Background color of confirmation dialogs.
  • confirmationDialogButtonBackgroundColor (String): Background color of buttons in confirmation dialogs.
  • confirmationCaptureButtonBackgroundColor (String): Background color of button in confirmation capture dialog.
  • confirmationDialogButtonTextColor (String): Text color of buttons in confirmation dialogs.
  • confirmationDialogLinkTextColor (String): Text color of buttons that look like links in confirmation dialogs.
  • confirmationDialogTextColor (String): Text color of confirmation dialogs.
  • detectionMessageBackgroundColor (String): Background color of messages overlayed during the detection process.
  • detectionMessageTextColor (String): Text color of messages overlayed during the detection process.
  • infoAlertShow (Boolean): Whether to display a "heads-up" confirmation dialog warning detection is about to start.
  • infoModalShow (Boolean): Whether to display a modal helper dialog to explain the user the needed actions to success within the authentication process.
  • isInfoModalShow (Boolean): Display button that allow to Display a Info user Modal with steps instrucctions.
  • infoUserSliderButtonText (String): Label for continue button in help user modal.
  • infoUserDocumentTitle (String): Config title document help user modal.
  • infoUserImagesPath (String): Config path with the icons for help user modal By default are used internal icons.
  • infoUserDocumentMedia (String): Config icon fileName to display at document help user modal.
  • infoUserDocumentBackgroundColorTop (String): Config background color top document help user modal.
  • infoUserDocumentBackgroundColor (String): Config background color document help user modal.
  • infoUserDocumentBackgroundColorButton (String): Config button background color document help user modal.
  • outerGlowCenteringAidDefault (String): Color of the translucent area surrounding the border of the centering aid, when detection is active but no document is being detected yet.
  • outerGlowCenteringAidDetecting (String): Color of the translucent area surrounding the border of the centering aid, when a document is being detected.
  • reviewImage (Boolean): Whether to display a confirmation dialog displaying the captured image, for the user to have a choice between continuing to the next step or redoing capture.
  • sdkBackgroundColorInactive (String): Background color of the sdk before detection starts.
  • firstArrow (String): Color of the first arrow display when smart document is detected.
  • secondArrow (String): Color of the second arrow display when smart document is detected.
  • thirdArrow (String): Color of the third arrow display when smart document is detected.
  • fourthArrow (String): Color of the fourth arrow display when smart document is detected.
  • fifthArrow (String): Color of the fifth arrow display when smart document is detected.
  • docCaptureVerticalPortraitMode (Boolean): Allow capture vertical without landscape orientation.

Error Configuration

  • displayErrors (Boolean): Whether to see errors in the UI. These errors would display if browser requirements are not met or if the camera fails to start.
  • permissionRefused (String): Warning to display to user if the browser is blocking the SDK from accessing the media device.
  • permissionRefusedTitle (String): Title of warning to user if the browser is blocking the SDK from accessing the media device
  • videoErrorConstraint (String): Error to display to user if media constraint is not correct.
  • videoErrorConstraintActionLabel (String): Text label button to display if media constraint is not correct.
  • videoErrorDefault (String): Error to display to user if there is a media default error.
  • videoErrorDefaultActionLabel (String): Text label button to display if there is a media default error.
  • videoErrorNotFound (String): Error to display to user if media device is not found.
  • videoErrorNotFoundActionLabel (String): Text label button to display if media device is not found.
  • videoErrorPermission (String): Error to display to user if media does not have permission.
  • videoErrorPermissionActionLabel (String): Text label button to display if media does not have permission.
  • videoErrorUnavailable (String): Error to display to user if media device is unavailable.
  • videoErrorUnavailableActionLabel (String): Text label button to display if media device is unavailable.
  • webrtcUnsupportedText (String): Text to display to the user if webRTC is not supported on the user’s browser. This message will only be visible if displayErrors is set to true.
  • tooFarText (String): Instructions to user during detection when document is detected too far.
  • tooCloseText (String): Instructions to user during detection when document is detected too close.

CONFIGURATION SELFIE ALIVE

There is a list of the different customizable parameters of the SDK. The variables must be added in the script "sdkSantander.generateConfig" in the var "selfieAliveOptions"

  • numberHeadMovements (string): The number of movements head for selfie alive capture. ( There are two by default).
  • targetSelector (string): The (unique inside the HTML document) CSS selector of the element VDDocument should attach to.
  • webrtcUnsupportedText (string): Text to display to the user if webRTC is not supported on the user’s browser.This message will only be visible if displayErrors is enabled.
  • displayErrors (boolean): Whether to see errors in the UI.
  • infoAlertShow (boolean): Whether to display a "heads-up" confirmation dialog warning detection is about to start
  • closeButton (boolean): Whether to display a button that shuts down the SDK
  • smileRequestSmile (string): Text displayed during the smile request in selfie Alive.
  • aliveChallenge (object): Challenge to ask the user to complete.
  • stepChallenge (string): Text displayed in current step challenge in selfie Alive.
  • smileRequestSerious (string): Text displayed during the serious request in selfie Alive.
  • fitYourFace (string): Text displayed previously to start the face detection.
  • infoReviewImageText (object): Text to display to let the user review the captured image
  • setLandscapeDeviceMessage (string): Text to display to let the user rotate the device in landscape mode
  • setPortraitDeviceMessage (string): Text to display to let the user rotate the device in portrait mode
  • setMessageDisplayMargin (string): Margin to display the messages
  • stepOfChallenge (string): Text displayed total steps challenge in selfie Alive.
  • setMessageDisplayHeight (string): Container height to display the messages
  • setMessageDisplayOpacity (string): Container opacity to display the messages
  • setMessageDisplayPosition (string): Position to display the messages
  • setMessageDisplayPadding (string): Padding to display the messages
  • setMessageDisplayWidth (string): Container width to display the messages
  • detectionTimeout (number): Duration in milliseconds after which the sdk should stop recording and shut down. Max is 300000, min 60000
  • repeatText (string): Label for the button that allows the user to click and repeat detection, if the captured image was defective
  • reviewImage (boolean): Whether to display a confirmation dialog showing the captured image, for the user to continue or repeat detection
  • continueText (string): Label for the button that allows the user to click and move to the next stage
  • message_alive_light (string): Message to ask the user to move his/her face
  • message_alive_bold (string): Bold message to get the user attention
  • message_middle_center (string): Message to ask the user to look to the center
  • message_finish_challenge (string): Message to ask the user to look to the center
  • restartingErrorText (string): Message to tell the user to repeat the process
  • logEventsToConsole (boolean): Whether or not tol log events (camera start, etc) to the console
  • sdkBackgroundColorInactive (string): Background color of the sdk before detection starts
  • borderColorCenteringAidInactive (string): Border color of the centering aid, before detection process starts
  • ngas_images_path (string): URL path append to images NGAS ( head gifs )
  • borderColorCenteringAidDetecting (string): Border color of the centering aid, when a document is being "seen"
  • borderColorCenteringAidFaceDetecting (string): Border opacity color the centering aid, when face is "detected"
  • detectionMessageTextColorSelfie (string): Text color of messages overlayed while SDK is actively trying to capture a target.
  • detectionMessageBackgroundColorSelfie (string): Background color of messages overlayed while SDK is actively trying to capture a target.
  • detectionMessageBorderRadius (string): Set custom message box border radius values.
  • detectionMessageFontFamily (string): Font family used to display the messages.
  • detectionMessageLineHeight (string): Font weight used to display the messages.
  • confirmationDialogBackgroundColor (string): Background color of confirmation dialogs
  • detectionMessageFontWeight (string): Font weight used to display the messages.
  • confirmationDialogTextColor (string): Text color of confirmation dialogs
  • showSpinner (boolean): Show spinner after face detection
  • confirmationColorTick (string): Tick color icon when capture success
  • customConfirmationImageTick (string): Tick image icon path used when capture success
  • loadingSpinnerColor (string): Loading spinner color
  • errorDisplayTextColor (string): Text color of error display
  • errorDisplayHeaderTextColor (string): Text color of error header display
  • errorDisplayHeaderBackgroundColor (string): Background color of error header display
  • errorDisplayBackgroundColor (string): Background color of error display
  • errorActionButtonBackgroundColor (string): Background color of error header display
  • errorDisplayHeaderTitle (string): Label for the header title in window error message
  • infoModalShow (boolean): Display a Info user Modal with steps instrucctions
  • isInfoModalShow (boolean): Display button that allow to Display a Info user Modal with steps instrucctions
  • errorActionButtonTextColor (string): Text color of error header display
  • errorDisplayUserActionShow (boolean): Display user action in window error message
  • infoUserImagesPath (string): URL path append to slide help images ( set empty if slider images have full URL )
  • infoUserAliveHeaderColor (string): Config color on header text Slider
  • infoUserAliveHeader (string): Config text on header in alive slides
  • infoUserAliveTitleColor (string): Config color on title text Slider
  • infoUserAliveSubTitle (object): Config subtitle alive help user modal
  • infoUserAliveSubTitleColor (string): Config color on subTitle text Slider
  • infoUserAliveMedia (object): Config image alive help user Slider
  • infoUserAliveBackgroundColor (string): Config background color alive help user Slider
  • infoUserAliveColorButton (string): Config Submit button background color in alive help user Slider
  • infoUserAliveTitle (object): Config title alive help user modal
  • infoUserAliveButtonText (string): Config text on Alive help user Slider submit button
  • infoUserAliveNextButtonText (string): Config text on Alive help user Slider next button
  • infoUserAliveNextButtonColor (string): Config text color on Alive help user Slider next button
  • infoUserAlivePrevButtonColor (string): Config text color on Alive help user Slider prev button.
  • infoUserAlivePrevButtonText (string): Config text on Alive help user Slider prev button
  • videoErrorNotFound (string): Error to display to user if media device is not found
  • videoErrorUnavailable (string): Error to display to user if media device is unavailable
  • videoErrorPermission (string): Error to display to user if media does not have permission
  • videoErrorConstraint (string): Error to display to user if media constraint is not correct
  • videoErrorDefault (string): Error to display to user if there is a media default error
  • videoErrorExternalInput (string): Error to display to user if a virtual camera is the input device
  • videoErrorUnavailableActionLabel (string): Text label button to display if media device is unavailable
  • videoErrorPermissionActionLabel (string): Text label button to display if media does not have permission
  • videoErrorConstraintActionLabel (string): Text label button to display if media constraint is not correct
  • videoErrorExternalInputLabel (string): Text label button to display if input device is virtual camera
  • customOvalBorderRadius (string): Set custom oval face shape border radius values.
  • borderThickness (number): Set custom line shape border thickness value.
  • fontSize (number): Set custom size for all fonts by % of default fontSize calculated.
  • pathModels (string): Set custom path to load detection models on sdk alive, always relative to index.html
  • customOval (boolean): Set custom oval option.
  • outerGlowCenteringAidDefault (string): Color of the translucid area surrounding the border of the centering aid, when detection is active but no target is being "seen".
  • outerGlowCenteringAidDetecting (string): Color of the translucid area surrounding the border of the centering aid, when a target is being "seen".
  • continueButtonColor (string): Color for the button that allows the user to click and move to the next stage.
  • buttonBackgroundColorLight (string): Light color for continue button degraded style.
  • buttonBackgroundColorDark (string): Dark color for continue button degraded style.
  • buttonBackgroundColorLightRepeat (string): Light color for repeat button degraded style.
  • buttonBackgroundColorDarkRepeat (string): Dark color for repeat button degraded style.
  • repeatButtonColor (string): Color for the button that allows the user to click and move to the previous stage.
  • stepsChallengeColor (string): Color of steps in alive challenge.
  • not_move (string): Text displayed to stay face in the middle.
  • center_face (string): Text displayed to center your face in the middle.
  • showLogo (boolean): Display veridas logo.

COUNTRIES AND TYPE OF DOCUMENTS

TWO SIDED DOCUMENTS

Andorra AD_DrivingLicense_1990 (GROUP_ID: AD, AD_DL) Albania AL_IDCard_2009 (GROUP_ID: AL, AL_ID) Argentina AR_IDCard_2012 (GROUP_ID: AR2, AR2_ID) AR_IDCard_2009 (GROUP_ID: AR2, AR2_ID) ARG2009 (GROUP_ID: AR, AR_ID) ARG2012 (GROUP_ID: AR, AR_ID)

Australia Western AU-WA_DrivingLicense_2011 (GROUP_ID: AU-WA, AU-WA_DL) AU-WA_DrivingLicense_2014 (GROUP_ID: AU-WA, AU-WA_DL) Tasmania AU-TAS_DrivingLicense_2015 (GROUP_ID: AU-TAS, AU-TAS_DL) Queensland AU-QLD_DrivingLicense_2011 (GROUP_ID: AU-QLD, AU-QLD_DL) AU-QLD_DrivingLicense_2016 (GROUP_ID: AU-QLD, AU-QLD_DL) Northern Territory AU-NT_DrivingLicense_2006 (GROUP_ID: AU-NT, AU-NT_DL) New South Wales AU-NSW_DrivingLicense_2013 (GROUP_ID: AU-NSW, AU-NSW_DL) South Australia AU-SA_DrivingLicense_2014 (GROUP_ID: AU-SA, AU-SA_DL) Victoria AU-VIC_DrivingLicense_2009 (GROUP_ID: AU-VIC, AU-VIC_DL) Australian Capital Territory AU-ACT_DrivingLicense_2011 (GROUP_ID: AU-ACT, AU-ACT_DL)

Austria AT_DrivingLicense_2006 (GROUP_ID: AT, AT_DL) AT_DrivingLicense_2014 (GROUP_ID: AT, AT_DL) AT_IDCard_2010 (GROUP_ID: AT, AT_ID) AT_IDCard_2002 (GROUP_ID: AT, AT_ID) AT_DrivingLicense_2004 AT_ResidencePermit_2011 (GROUP_ID: AT, AT_ID) AT_ResidencePermit_2005

Bosnia BA_IDCard_2003 (GROUP_ID: BA, BA_ID) BA_IDCard_2013 (GROUP_ID: BA, BA_ID) Belgium BE_DrivingLicense_2010 (GROUP_ID: BE, BE_DL) BE_DrivingLicense_2013 (GROUP_ID: BE, BE_DL) BE_IDCard_2008 (GROUP_ID: BE, BE_ID) BE_IDCard_2010 (GROUP_ID: BE, BE_ID)

Brasil BR_DrivingLicense_2017 (GROUP_ID: BR, BR_DL) This document needs the following setup* configuration:

const VDDocument = makeVDDocumentWidget();
VDDocument({
  targetSelector: '#target',
  infoAlertShow: true,
  reviewImage: true,
  BRDL: ['BR_DrivingLicense_2017'],
  displayErrors: true,
  displayDetectionCanvas: false,
  displayCapabilitiesDebugger: false,
  logEventsToConsole: true,
  displayIP: false,
  recordMetrics: true,
});

BR_IDCard_2014 (GROUP_ID: BR, BR_ID) BR_DrivingLicense_2019 (GROUP_ID: BR, BR_DL)

Bulgaria BG_DrivingLicense_2002 (GROUP_ID: BG, BG_DL) BG_DrivingLicense_2013 (GROUP_ID: BG, BG_DL) BG_IDCard_2006 (GROUP_ID: BG, BG_ID) BG_IDCard_2010 (GROUP_ID: BG, BG_ID)

Belarus BY_DrivingLicense_2010 (GROUP_ID: BY, BY_DL)

Switzerland CH_DrivingLicense_2003 (GROUP_ID: CH, CH_DL) CH_IDCard_2003 (GROUP_ID: CH, CH_ID)

Chile CL_IDCard_2002 (GROUP_ID: CL, CL_ID) CL_IDCard_2013 (GROUP_ID: CL, CL_ID)

China CN_IDCard_2004 (GROUP_ID: CN, CN_ID)

Colombia CO_IDCard_2000 (GROUP_ID: CO, CO_ID) CO_ResidencePermit_2016 (GROUP_ID: CO, CO_ID) CO_IDCard_2020 (GROUP_ID: CO, CO_ID)

Croatia HR_DrivingLicense_2013 (GROUP_ID: HR, HR_DL) HR_IDCard_2003 (GROUP_ID: HR, HR_ID) HR_IDCard_2015 (GROUP_ID: HR, HR_ID)

Cyprus CY_DrivingLicense_2015 (GROUP_ID: CY, CY_DL) CY_IDCard_2008 (GROUP_ID: CY, CY_ID) CY_IDCard_2015 (GROUP_ID: CY, CY_ID)

Czechia CZ_DrivingLicense_2013 (GROUP_ID: CZ, CZ_DL) CZ_IDCard_2003 (GROUP_ID: CZ, CZ_ID) CZ_IDCard_2014 (GROUP_ID: CZ, CZ_ID)

Germany DE_DrivingLicense_2004 (GROUP_ID: DE, DE_DL) DE_DrivingLicense_2013 (GROUP_ID: DE, DE_DL) DE_IDCard_2007 (GROUP_ID: DE, DE_ID) DE_IDCard_2010 (GROUP_ID: DE, DE_ID)

Denmark DK_DrivingLicense_1997 (GROUP_ID: DK, DK_DL) DK_DrivingLicense_2013 (GROUP_ID: DK, DK_DL)

Estonia EE_DrivingLicense_2004 (GROUP_ID: EE, EE_DL) EE_DrivingLicense_2013 (GROUP_ID: EE, EE_DL) EE_IDCard_2011 (GROUP_ID: EE, EE_ID)

Finland FI_DrivingLicense_1992 (GROUP_ID: FI, FI_DL) FI_DrivingLicense_2010 (GROUP_ID: FI, FI_DL) FI_DrivingLicense_2013 (GROUP_ID: FI, FI_DL) FI_IDCard_2011 (GROUP_ID: FI, FI_ID) FI_IDCard_2017 (GROUP_ID: FI, FI_ID)

France FR_DrivingLicense_2013 (GROUP_ID: FR, FR_DL) FR_IDCard_1994 (GROUP_ID: FR, FR_ID)

Great Britain GB_DrivingLicense_1998 (GROUP_ID: GB, GB_DL) GB_DrivingLicense_2007 (GROUP_ID: GB, GB_DL) GB_DrivingLicense_2014 (GROUP_ID: GB, GB_DL) GB_DrivingLicense_2015 (GROUP_ID: GB, GB_DL) GB_DrivingLicense-PL_1998 (GROUP_ID: GB, GB_DL) GB_DrivingLicense-PL_2007 (GROUP_ID: GB, GB_DL) GB_DrivingLicense-PL_2014 (GROUP_ID: GB, GB_DL) GB_DrivingLicense-PL_2015 (GROUP_ID: GB, GB_DL)

Greece GR_DrivingLicense_2013 (GROUP_ID: GR, GR_DL)

Guatemala GT_IDCard_2009 (GROUP_ID: GT, GT_ID)

Hungary HU_DrivingLicense_2013 (GROUP_ID: HU, HU_DL) HU_IDCard_2000 (GROUP_ID: HU, HU_ID) HU_IDCard_2015 (GROUP_ID: HU, HU_ID)

Ireland IE_DrivingLicense_2013 (GROUP_ID: IE, IE_DL) IE_Passport_2015 (GROUP_ID: IE)

Mexico MX_IDCard_2013 MX_IDCard_2014 (GROUP_ID: MX2, MX2_ID) MX_IDCard_2008 (GROUP_ID: MX2, MX2_ID) MX_IDCard_2019 (GROUP_ID: MX2, MX2_ID) MX_ResidentPermit_2010 MX_ProfessionalCard_2008 IFE2002 IFE2008 (GROUP_ID: MX, MX_ID) IFE2013 IFEE (GROUP_ID: MX, MX_ID)

Iceland IS_DrivingLicense_2001 (GROUP_ID: IS, IS_DL) IS_DrivingLicense_2013 (GROUP_ID: IS, IS_DL)

Italy IT_DrivingLicense_2000 (GROUP_ID: IT, IT_DL) IT_DrivingLicense_2013 (GROUP_ID: IT, IT_DL) IT_IDCard_2004 (GROUP_ID: IT, IT_ID) IT_IDCard_2016 (GROUP_ID: IT, IT_ID) IT_HealthCard_2004 (GROUP_ID: IT)

Liechtenstein LI_DrivingLicense_2003 (GROUP_ID: LI, LI_DL) LI_IDCard_1995 (GROUP_ID: LI, LI_ID) LI_IDCard_2009 (GROUP_ID: LI, LI_ID)

Lithuania LT_DrivingLicense_2007 (GROUP_ID: LT, LT_DL) LT_DrivingLicense_2016 (GROUP_ID: LT, LT_DL) LT_IDCard_2002 (GROUP_ID: LT, LT_ID) LT_IDCard_2009 (GROUP_ID: LT, LT_ID)

Luxembourg LU_DrivingLicense_2013 (GROUP_ID: LU, LU_DL) LU_IDCard_2014 (GROUP_ID: LU, LU_ID) Latvia LV_DrivingLicense_2004 (GROUP_ID: LV, LV_DL) LV_DrivingLicense_2013 (GROUP_ID: LV, LV_DL) LV_IDCard_2012 (GROUP_ID: LV, LV_ID)

Monaco MC_IDCard_2009 (GROUP_ID: MC, MC_ID)

Moldavia MD_IDCard_2015 (GROUP_ID: MD, MD_ID)

Montenegro ME_IDCard_2008 (GROUP_ID: ME, ME_ID)

Macedonia MK_IDCard_2007 (GROUP_ID: MK, MK_ID)

Malta MT_DrivingLicense_2003 (GROUP_ID: MT, MT_DL) MT_DrivingLicense_2013 (GROUP_ID: MT, MT_DL) MT_IDCard_2002 (GROUP_ID: MT, MT_ID) MT_IDCard_2014 (GROUP_ID: MT, MT_ID)

Malasya MYS2001 (GROUP_ID: MY, MY_ID)

Netherlands NL_DrivingLicense_2006 (GROUP_ID: NL, NL_DL) NL_DrivingLicense_2013 (GROUP_ID: NL, NL_DL) NL_DrivingLicense_2014 (GROUP_ID: NL, NL_DL) NL_IDCard_2011 (GROUP_ID: NL, NL_ID) NL_IDCard_2014 (GROUP_ID: NL, NL_ID)

Norway NO_DrivingLicense_1998 (GROUP_ID: NO, NO_DL) NO_DrivingLicense_2007 (GROUP_ID: NO, NO_DL) NO_DrivingLicense_2013 (GROUP_ID: NO, NO_DL)

New Zealand NZ_DrivingLicense_2007 (GROUP_ID: NZ, NZ_DL)

Peru PE_IDCard_2007 (GROUP_ID: PE, PE_ID) PE_IDCard_2013 (GROUP_ID: PE, PE_ID) PE_IDCard_2020 (GROUP_ID: PE, PE_ID)

Poland PL_DrivingLicense_1999 (GROUP_ID: PL, PL_DL) PL_DrivingLicense_2004 (GROUP_ID: PL, PL_DL) PL_DrivingLicense_2013 (GROUP_ID: PL, PL_DL) PL_IDCard_2001 (GROUP_ID: PL, PL_ID) PL_IDCard_2015 (GROUP_ID: PL, PL_ID) PL_IDCard_2019 (GROUP_ID: PL, PL_ID)

Portugal PT_DrivingLicense_2013 (GROUP_ID: PT, PT_DL) PT_DrivingLicense_1999 (GROUP_ID: PT, PT_DL) PT_IDCard_2015 (GROUP_ID: PT, PT_ID)

Panama PA_IDCard_2010 (GROUP_ID: PA, PA_ID)

Paraguay PY_IDCard_2007 (GROUP_ID: PY, PY_ID) PY_IDCard_2009 (GROUP_ID: PY, PY_ID)

Philippines PH_DrivingLicense_2017 (GROUP_ID: PH, PH_ID) PH_IDCard_2011 (GROUP_ID: PH, PH_ID) PH_IDCard_2015 (GROUP_ID: PH, PH_ID) PH_IDCard_2016 (GROUP_ID: PH, PH_ID) PH_IDCard-PO_2016 (GROUP_ID: PH, PH_ID)

Russia RU_DrivingLicense_2011 (GROUP_ID: RU, RU_DL)

Serbia RS_IDCard_2008 (GROUP_ID: RS, RS_ID)

Singapour SG_IDCard_2011 (GROUP_ID: SG, SG_ID)

Sweden SE_DrivingLicense_2016 (GROUP_ID: SE, SE_DL) SE_DrivingLicense_2013 (GROUP_ID: SE, SE_DL) SE_IDCard_2012 (GROUP_ID: SE, SE_ID)

Slovenia SI_DrivingLicense_2009 (GROUP_ID: SI, SI_DL) SI_DrivingLicense_2013 (GROUP_ID: SI, SI_DL) SI_IDCard_1998 (GROUP_ID: SI, SI_ID)

Slovakia SK_DrivingLicense_2008 (GROUP_ID: SK, SK_DL) SK_DrivingLicense_2013 (GROUP_ID: SK, SK_DL) SK_IDCard_2015 (GROUP_ID: SK, SK_ID)

Spain ES_DrivingLicense_2013 (GROUP_ID: ES2, ES2_DL) ES_DrivingLicense_2004 (GROUP_ID: ES2, ES2_DL) ES_IDCard_2015 (GROUP_ID: ES2, ES2_ID) ES_IDCard_2021 (GROUP_ID: ES2, ES2_ID) ES_IDCard_2006 (GROUP_ID: ES2, ES2_ID) ES_ResidencePermit_2010 (GROUP_ID: ES2, ES2_ID) ES_ResidencePermit_2011 (GROUP_ID: ES2, ES2_ID) ES_ResidencePermit_2020 (GROUP_ID: ES2, ES2_ID) DNI20 (GROUP_ID: ES, ES_ID) DNI30 (GROUP_ID: ES, ES_ID) NIE2003 (GROUP_ID: ES, ES_ID) NIE2010 (GROUP_ID: ES, ES_ID) NIE2011 (GROUP_ID: ES, ES_ID)

Turkey TR_IDCard_2016 (GROUP_ID: TR, TR_ID)

Ukraine UA_IDCard_2016 (GROUP_ID: UA, UA_ID)

Uruguay UY_IDCard_1999 (GROUP_ID: UY, UY_ID) UY_IDcard_2015 (GROUP_ID: UY, UY_ID)

USA These three documents are special. The group id of them are US-XX where XX is the ID of the state (Example: US-AK) US_IDCard-MilitaryRS_1993 US_IDCard-MilitaryRT_1993 US_IDCard-MilitaryRR_1993 Alaska (GROUP_ID: US-AK, US-AK_DL) US-AK_DrivingLicense_2014 US-AK_DrivingLicense_2005 US-AK_DrivingLicense_2018 Alabama (GROUP_ID: US-AL, US-AL_DL) US-Al_DrivingLicense_2013 (GROUP_ID: US-AL, US-AL_DL) US-AL_IDCard_2013 (GROUP_ID: US-AL, US-AL_ID) Arkansas (GROUP_ID: US-AR, US-AR_DL) US-AR_DrivingLicense_2016 US-AR_DrivingLicense_2018 Arizona (GROUP_ID: US-AZ, US-AZ_DL) US-AZ_DrivingLicense_1996 US-AZ_DrivingLicense_1990 US-AZ_DrivingLicense_2004 US-AZ_DrivingLicense_2016 California (GROUP_ID: US-CA, US-CA_DL) US-CA_DrivingLicense_2008 US-CA_DrivingLicense_2018 Colorado (GROUP_ID: US-CO, US-CO_DL) US-CO_DrivingLicense_2016 US-CO_DrivingLicense_2011 Connecticut (GROUP_ID: US-CT, US-CT_DL) US-CT_DrivingLicense_2017 US-CT_DrivingLicense_2009 District of Columbia (GROUP_ID: US-DC, US-DC_DL) US-DC_DrivingLicense_2017 Delware (GROUP_ID: US-DE, US-DE_DL) US-DE_DrivingLicense_2010 US-DE_DrivingLicense_2018 Florida (GROUP_ID: US-FL, US-FL_DL) US-FL_DrivingLicense_2010 US-FL_DrivingLicense_2017 Georgia (GROUP_ID: US-GA, US-GA_DL) US-GA_DrivingLicense_2012 US-GA_DrivingLicense_2007 Hawaii (GROUP_ID: US-HI, US-HI_DL) US-HI_DrivingLicense_2012 US-HI_DrivingLicense_2018 Iowa (GROUP_ID: US-IA, US-IA_DL) US-IA_DrivingLicense_2013 US-IA_DrivingLicense_2018 Idaho (GROUP_ID: US-ID, US-ID_DL) US-ID_DrivingLicense_2004 US-ID_DrivingLicense_2010 US-ID_DrivingLicense_2017 Illinois (GROUP_ID: US-IL, US-IL_DL) US-IL_DrivingLicense_2016 US-IL_DrivingLicense_2007 Indiana (GROUP_ID: US-IN, US-IN_DL) US-IN_DrivingLicense_2010 US-IN_DrivingLicense_2017 Kansas (GROUP_ID: US-KS, US-KS_DL) US-KS_DrivingLicense_2017 US-KS_DrivingLicense_2012 US-KS_DrivingLicense_2004 Kentucky (GROUP_ID: US-KY, US-KY_DL) US-KY_DrivingLicense_2012 US-KY_DrivingLicense_2019 Louisiana (GROUP_ID: US-LA, US-LA_DL) US-LA_DrivingLicense_2011 US-LA_DrivingLicense_2014 US-LA_DrivingLicense_2016 Massachusetts (GROUP_ID: US-MA, US-MA_DL) US-MA_DrivingLicense_2018 US-MA_DrivingLicense_2010 Maryland (GROUP_ID: US-MD, US-MD_DL) US-MD_DrivingLicense_2013 US-MD_DrivingLicense_2016 Maine (GROUP_ID: US-ME, US-ME_DL) US-ME_DrivingLicense_2011 Michigan (GROUP_ID: US-MI, US-MI_DL) US-MI_DrivingLicense_2017 Minnesota (GROUP_ID: US-MN, US-MN_DL) US-MN_DrivingLicense_2018 US-MN_DrivingLicense_2004 US-MN_DrivingLicense_2014 Missouri (GROUP_ID: US-MO, US-MO_DL) US-MO_DrivingLicense_2012 US-MO_DrivingLicense_2004 Mississippi (GROUP_ID: US-MS, US-MS_DL) US-MS_DrivingLicense_2017 US-MS_DrivingLicense_2001 Montana (GROUP_ID: US-MT, US-MT_DL) US-MT_DrivingLicense_2000 US-MT_DrivingLicense_2008 North Carolina (GROUP_ID: US-NC, US-NC_DL) US-NC_DrivingLicense_2017 US-NC_DrivingLicense_2007 North Dakota (GROUP_ID: US-ND, US-ND_DL) US-ND_DrivingLicense_2018 US-ND_DrivingLicense_2006 Nebraska (GROUP_ID: US-NE, US-NE_DL) US-NE_DrivingLicense_2013 New Hampshire (GROUP_ID: US-NH, US-NH_DL) US-NH_DrivingLicense_2017 US-NH_DrivingLicense_2006 New Jersey (GROUP_ID: US-NJ, US-NJ_DL) US-NJ_DrivingLicense_2011 New Mexico (GROUP_ID: US-NM, US-NM_DL) US-NM_DrivingLicense_2016 US-NM_DrivingLicense_2014 Nevada (GROUP_ID: US-NV, US-NV_DL) US-NV_DrivingLicense_2014 New York (GROUP_ID: US-NY, US-NY_DL) US-NY_DrivingLicense_2008 US-NY_DrivingLicense_2017 Ohio (GROUP_ID: US-OH, US-OH_DL) US-OH_DrivingLicense_2018 US-OH_DrivingLicense_2014 US-OH_DrivingLicense_2013 Oklahoma (GROUP_ID: US-OK, US-OK_DL) US-OK_DrivingLicense_2018 Oregon (GROUP_ID: US-OR, US-OR_DL) US-OR_DrivingLicense_2007 US-OR_DrivingLicense_2018 Pennsylvania (GROUP_ID: US-PA, US-PA_DL) US-PA_DrivingLicense_2017 US-PA_DrivingLicense_2011 Rhode Island (GROUP_ID: US-RI, US-RI_DL) US-RI_DrivingLicense_2018 US-RI_DrivingLicense_2008 South Carolina (GROUP_ID: US-SC, US-SC_DL) US-SC_DrivingLicense_2018 US-SC_DrivingLicense_2011 South Dakota (GROUP_ID: US-SD, US-SD_DL) US-SD_DrivingLicense_2009 US-SD_DrivingLicense_2010 Tennessee (GROUP_ID: US-TN, US-TN_DL) US-TN_DrivingLicense_2012 US-TN_DrivingLicense_2003 Texas US-TX_DrivingLicense_2016 (GROUP_ID: US-TX, US-TX_DL) US-TX_IDCard_2016 (GROUP_ID: US-TX, US-TX_ID) Utah (GROUP_ID: US-UT, US-UT_DL) US-UT_DrivingLicense_2016 US-UT_DrivingLicense_2006 Virginia US-VA_DrivingLicense_2018 (GROUP_ID: US-VA, US-VA_DL) US-VA_IDCard_2018 (GROUP_ID: US-VA, US-VA_ID) Vermont (GROUP_ID: US-VT, US-VT_DL) US-VT_DrivingLicense_2014 US-VT_DrivingLicense_2018 Washington (GROUP_ID: US-WA, US-WA_DL) US-WA_DrivingLicense_2019 US-WA_DrivingLicense_2010 Wisconsin (GROUP_ID: US-WI, US-WI_DL) US-WI_DrivingLicense_2015 US-WI_DrivingLicense_2012 US-WI_DrivingLicense_2005 West Virginia (GROUP_ID:US-WV, US-WV_DL) US-WV_DrivingLicense_2013 US-WV_DrivingLicense_2005 Wyoming (GROUP_ID:US-WY, US-WY_DL) US-WY_DrivingLicense_2014

Canada Alberta (GROUP_ID:CA-AB, CA-AB_DL) CA-AB_DrivingLicense_2009 British Columbia (GROUP_ID:CA-BC, CA-BC_DL) CA-BC_DrivingLicense_2013 Manitoba (GROUP_ID:CA-MB, CA-MB_DL) CA-MB_DrivingLicense_2014 Newfoundland and Labrador (GROUP_ID:CA-NL, CA-NL_DL) CA-NL_DrivingLicense_2017 Northwest Territories (GROUP_ID:CA-NT, CA-NT_DL) CA-NT_DrivingLicense_2005 Nova Scotia (GROUP_ID:CA-NS, CA-NS_DL) CA-NS_DrivingLicense_2017 Nunavut (GROUP_ID:CA-NU, CA-NU_DL) CA-NU_DrivingLicense_2009 Ontario (GROUP_ID:CA-ON, CA-ON_DL) CA-ON_DrivingLicense_2007 Prince Edward Island (GROUP_ID:CA-PE, CA-PE_DL) CA-PE_DrivingLicense_2017 Quebec State (GROUP_ID:CA-QC, CA-QC_DL) CA-QC_DrivingLicense_2015 Saskatchewan State(GROUP_ID:CA-SK, CA-SK_DL) CA-SK_DrivingLicense_2016 Yukon (GROUP_ID:CA-YT, CA-YT_DL) CA-YT_DrivingLicense_2010 New Brunswick CA-NB_DrivingLicense_2017 (GROUP_ID: CA-NB, CA-NB_DL) CA-NB_IDCard_2020 (GROUP_ID: CA-NB, CA-NB_DL)

Dominican Republic DO_IDCard_1998 (GROUP_ID: DO, DO_ID) DO_IDCard_2014 (GROUP_ID: DO, DO_ID)

Malaysia MY_IDCard_2012 (GROUP_ID: MY, MY_ID)

Venezuela VE_IDCard_2011 (GROUP_ID: VE, VE_ID)

ONE SIDED DOCUMENTS

List of document types that may be used with the documentsMinimal configuration setting. For TD1 size documents. AT_ResidencePermit_2005: Austria Residence Permit 2005 Example: documentsMinimal : 'AT_ResidencePermit_2005' -> Generic document

AUTOMATICALLY CLASSIFIED DOCUMENTS

The recognised documents that can be automatically classified with their IDs are:

ES_IDCard_2006: Spain IDCard 2006 (DNI 2.0) ES_IDCard_2015: Spain IDCard 2015 (DNI 3.0) ES_IDCard_2021: Spain IDCard 2021 (DNI 4.0) ES_ResidencePermit_2010: Spain ResidencePermit 2010 (NIE 2010) ES_ResidencePermit_2011: Spain ResidencePermit 2011 (NIE 2011) ES_ResidencePermit_2020: Spain ResidencePermit 2020 (NIE 2020) MX_IDCard_2008: Mexico IFE 2008 version C. MX_IDCard_2014: Mexico IFE 2014 version D, E and F. MX_IDCard_2019: Mexico IFE 2019 version G. If one of these documents is being detecting, it is recomended to use the obverseDetection_type and reverseDetection_type to get the ID of the right document and send it with the image captured to the server.

PASSPORTS

List of document types that may be used with the passport configuration setting. For TD3 size documents.

XX_Passport_YYYY Example: passport : ‘XX_Passport_YYYY’ -> Generic passport

LARGE FORMAT DRIVERS LICENSES

List of document types that may be used with the documentsPaper configuration setting:

AT_DrivingLicense_2004 (Austria Driving License 2004) Example: documentsPaper : ‘AT_DrivingLicense_2004’ -> Austria Driving License 2004

PAPER DOCUMENT ITALY

Document made with paper and with unique size.

paperDocumentItaly () Example: paperDocumentItaly : 'IT_IDCard_2017' -> Italy ID Card 2017

OTHER DOCUMENTS

List of document types that may be used with documents, documentsMinimal and passport configuration settings: XX_XX_XXXX Example: documents: ‘XX_XX_XXXX’ -> Generic document documentsMinimal : ‘XX_XX_XXXX’ -> Generic document passport : ‘XX_XX_XXXX’ -> Generic document

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago