Skip to main content

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

ID Verification - SDK 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. ::

NameTypeDescription
reservationIdStringThe Autohost ID of the reservation.
callbacksIDVCallbacksAn object defining callbacks to be fired when certain events occur. See the IDV Component page for more information.
primaryColor (optional)StringThe colour to use as the primary colour for all UI components.
locale (optional)LocalesThe language to display the component in.
isIDCollectOnly (optional)BooleanUses ID Collection instead of the more complete ID Verification
isSinglePage (optional)BooleanIf true, the Autohost Activity log will show that the user submitted IDV from a Single Page.
includeWhatToExpect (optional)BooleanIf true, will present the user with a high-level summary of the IDV process before they start, including some FAQs.

IDVCallbacks

NameParametersEvent
onDoctypeSelecteddocType: 'passport', 'id', 'selfie'User has selected their document type.
onIDVCompletecard: CardUser 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.
onStartImageUploadstep: StepsUser has submitted an image.
onImageUploadCompletestep: StepsThe image has been accepted and verified.
onImageUploadFailedstep: Steps, errorMessage: stringThe 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.
onLivenessCompleteUser has completed the Liveness check.
onLivenessFailedUser has failed the Liveness check.
onLivenessErrorerror: stringSome error has occured with the Liveness check, such as an image failing to upload.
onIDScannerOpenedUser has opened the mobile ID Scanner.
onIDScannerClosedThe mobile ID scanner has been closed.
onSkippedIDVUser 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.
onRemoteSessionStartedUser has started a remote camera session.
onRemoteSessionUpdateupdate: RemoteScanUpdateUser has completed a step with the remote camera.
onRemoteSessionCompleteUser has completed ID verification with the remote camera. onIDVComplete will also be called at this time.

Card

Nametype
addressstring
birth_datestring
country_codestring
document_numberstring
document_typestring
expiry_datestring
first_namestring
full_namestring
issue_datestring
last_namestring
processing_statusstring
recognition_statusstring
sexstring

Steps

Step Name
scan
front
back
selfie

RemoteScanUpdate

Nametype
stepSteps
statusScanStatuses
resultUploadImageResponse

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

Nametype
card (optional)Card
codestring
summarystring