Validation criteria
Validation criteria are rules that the document and the face must meet for the process to continue — for example, a non-expired document or an adult holder. When a criterion fails, the plugin reports it right away, so the app can ask the user to retry or use another document.
The criteria are configured for your account by Mobbeel. Contact your Mobbeel representative to choose them.
Available criteria
Document9 criteria
- validationDocumentNotExpiredThe document has not expired
- validationDocumentNotSpecimenThe document is not a specimen
- validationFrontAppearanceThe front looks like a genuine document
- validationBackAppearanceThe back looks like a genuine document
- validationFrontPhotocopyThe front is not a photocopy
- validationBackPhotocopyThe back is not a photocopy
- validationLegalAgeThe holder is 18 or older
- validationMRZThe MRZ is valid
- validationPersonalNumberBothSidesMatchThe personal number is the same on both sides
Face3 criteria
- validationFacialMatchingThe selfie matches the document portrait
- validationLivenessThe selfie comes from a live person
- validationIdentityVerificationThe overall identity verification passes
Read the result
The result is included in the data of setScanDocumentDataCallback and in the success callback of validateFace:
{
"enabledProcess": true,
"scanProcessValidationResult": "NOT_VALID",
"scanProcessFailedValidations": ["validationDocumentNotExpired"]
}
When a criterion fails, scanDocument or validateFace also call the error callback with VALIDATION_ERROR and the list of failed criteria. See Error handling.