SDK ID Verification Component
Description
The ID Verification component requires a user to submit an image of their government-issued ID document, and a selfie. View the ID Verification page in the knowledge base to learn more.
Video Demo
Remote Camera
On desktop devices, a user can choose to use the Remote Camera option, instead of uploading a file from their computer. This presents them with a scannable QR code that opens the mobile experience on their device. Currently, this will open a url that points to our hosted Guest Portal. An update is coming soon to allow you to customize the URL a guest is sent to, allowing you to host your own Remote Camera page, giving you more control over the styling and experience. ::
Configuration Options
Many of your configuration options are availabed on the IDV Settings Page in the Autohost Dashboard. This includes what document types are available, whether Liveness is enabled, and more. ::
Name | Type | Description |
---|---|---|
reservationId | String | The Autohost ID of the reservation. |
callbacks | IDVCallbacks | An object defining callbacks to be fired when certain events occur. See the IDV Component page for more information. |
primaryColor (optional) | String | The colour to use as the primary colour for all UI components. |
locale (optional) | Locales | The language to display the component in. |
isIDCollectOnly (optional) | Boolean | Uses ID Collection instead of the more complete ID Verification |
isSinglePage (optional) | Boolean | If true, the Autohost Activity log will show that the user submitted IDV from a Single Page. |
includeWhatToExpect (optional) | Boolean | If true, will present the user with a high-level summary of the IDV process before they start, including some FAQs. |
IDVCallbacks
Name | Parameters | Event |
---|---|---|
onDoctypeSelected | docType: 'passport', 'id', 'selfie' | User has selected their document type. |
onIDVComplete | card: Card | User has succesfully completed ID Verification, OR has skiped IDV and successfully uploaded a selfie holding their ID document. It is now safe to advance to the next step. |
onStartImageUpload | step: Steps | User has submitted an image. |
onImageUploadComplete | step: Steps | The image has been accepted and verified. |
onImageUploadFailed | step: Steps, errorMessage: string | The image has been rejected. This could be because it is illegible, not an image of an ID document, or a person for the selfie, or there is something else wrong with the image. |
onLivenessComplete | User has completed the Liveness check. | |
onLivenessFailed | User has failed the Liveness check. | |
onLivenessError | error: string | Some error has occured with the Liveness check, such as an image failing to upload. |
onIDScannerOpened | User has opened the mobile ID Scanner. | |
onIDScannerClosed | The mobile ID scanner has been closed. | |
onSkippedIDV | User has skipped ID verification. After two failed attempts, a user can skip uploading their ID document. Instead, they are prompted to take a selfie holding their ID, and the reservation is flagged for manual review. IMPORTANT Do not advance the user to the next step in your flow at this point. Allow the user to complete the selfie, and move them on only when onIDVComplete has been called. | |
onRemoteSessionStarted | User has started a remote camera session. | |
onRemoteSessionUpdate | update: RemoteScanUpdate | User has completed a step with the remote camera. |
onRemoteSessionComplete | User has completed ID verification with the remote camera. onIDVComplete will also be called at this time. |
Card
Name | type |
---|---|
address | string |
birth_date | string |
country_code | string |
document_number | string |
document_type | string |
expiry_date | string |
first_name | string |
full_name | string |
issue_date | string |
last_name | string |
processing_status | string |
recognition_status | string |
sex | string |
Steps
Step Name |
---|
scan |
front |
back |
selfie |
RemoteScanUpdate
Name | type |
---|---|
step | Steps |
status | ScanStatuses |
result | UploadImageResponse |
ScanStatuses
Status Name |
---|
STEP_1_REMOTE_CAMERA_IS_REQUESTED |
STEP_2_EXCHANGE_LINK_IS_GENERATED |
STEP_3_REMOTE_CAMERA_IS_PENDING |
STEP_4_REMOTE_CAMERA_IS_OPEN |
STEP_5_IMAGE_IS_UPLOADING |
STEP_6_IMAGE_IS_PROCESSING |
STEP_7_RESULT_IS_AVAILABLE |
ERROR_HAPPENED |
UploadImageResponse
Name | type |
---|---|
card (optional) | Card |
code | string |
summary | string |