Legacy Guide - Behavior Customization for ID Scan

Overview

The behavior overrides listed in this guide apply to versions of the FaceTec Server older than v9.6.98. Before FaceTec Server v9.6.98, scanResultBlob only allowed for one advanced behavior customization at a time. We recommend upgrading to the latest version of the FaceTec Server, which now allows for multiple behavior customizations to be configured. To learn more about the behavior customizations available on FaceTec Server v9.6.98+, please see ID Scan: Advanced Behavior Customizations.


Skipping an NFC Scan Dynamically (Custom Server)

In v9.6.84+, developers can use FaceTec's API to skip NFC Scans on a case-by-case basis.

To skip an NFC Scan when it would otherwise be applied, follow these steps.

Make changes to FaceTecSDK-custom-server-9.X.X\src\main\java\com\facetec\customserver\jsonObjects\responses\Match3D2DIDScanResponse.java

Replace: this.scanResultBlob = match3D2DIDScanResult.getScanResultBlob();

With: this.scanResultBlob = match3D2DIDScanResult.getScanResultBlob(FaceTecMatch3D2DIDScanResult.ResultBehaviorOverride.SKIP_NFC);

Make changes to FaceTecSDK-custom-server-9.X.X\src\main\java\com\facetec\customserver\jsonObjects\responses\PhotoIDScanResponse.java

Replace: this.scanResultBlob = scanResultBlob();

With: this.scanResultBlob = idScanOnlyResult.getScanResultBlob(FaceTecIDScanOnlyResult.ResultBehaviorOverride.SKIP_NFC);


Force User Confirmation Screen (Custom Server)

In v9.5.4+, the User Confirmation Screen is skipped by default after a successful Barcode or NFC scan. The User Confirmation Screen will continue to show if a Barcode or NFC chip is not specified by the OCR Template, if there was a problem reading the Barcode or NFC chip, or if the NFC step was skipped by the user.

To show the User Confirmation Screen when it would otherwise be skipped, follow these steps.

Make changes to FaceTecSDK-custom-server-9.X.X\src\main\java\com\facetec\customserver\jsonObjects\responses\Match3D2DIDScanResponse.java

Replace: this.scanResultBlob = match3D2DIDScanResult.getScanResultBlob();

With: this.scanResultBlob = match3D2DIDScanResult.getScanResultBlob(FaceTecMatch3D2DIDScanResult.ResultBehaviorOverride.FORCE_USER_CONFIRMATION);

Make changes to FaceTecSDK-custom-server-9.X.X\src\main\java\com\facetec\customserver\jsonObjects\responses\PhotoIDScanResponse.java

Replace: this.scanResultBlob = scanResultBlob();

With: this.scanResultBlob = idScanOnlyResult.getScanResultBlob(FaceTecIDScanOnlyResult.ResultBehaviorOverride.FORCE_USER_CONFIRMATION);


Skip OCR Confirmation Screen (Custom Server)

Using the OCR Text Confirmation Screen is strongly recommended because it adds information from your user that you can compare to what was seen on the Photo ID.

However, there is an option to Skip the OCR Confirmation Screen in the FaceTec Custom Server (v9).

Make changes to FaceTecSDK-custom-server-9.X.X\src\main\java\com\facetec\customserver\jsonObjects\responses\Match3D2DIDScanResponse.java

Replace: this.scanResultBlob = match3D2DIDScanResult.getScanResultBlob();

With: this.scanResultBlob = match3D2DIDScanResult.getScanResultBlob(FaceTecMatch3D2DIDScanResult.ResultBehaviorOverride.SKIP_USER_CONFIRMATION);

Make changes to FaceTecSDK-custom-server-9.X.X\src\main\java\com\facetec\customserver\jsonObjects\responses\PhotoIDScanResponse.java

Replace: this.scanResultBlob = scanResultBlob();

With: this.scanResultBlob = idScanOnlyResult.getScanResultBlob(FaceTecIDScanOnlyResult.ResultBehaviorOverride.SKIP_USER_CONFIRMATION);


Skip NFC Scan and OCR Confirmation Screen (Custom Server)

Using the OCR Text Confirmation Screen is strongly recommended because it adds information from your user that you can compare to what was seen on the Photo ID.

There is an option to Skip BOTH an NFC Scan and the OCR Confirmation Screen in the FaceTec Custom Server (v9) in v9.6.84+.

Make changes to FaceTecSDK-custom-server-9.X.X\src\main\java\com\facetec\customserver\jsonObjects\responses\Match3D2DIDScanResponse.java

Replace: this.scanResultBlob = match3D2DIDScanResult.getScanResultBlob();

With: this.scanResultBlob = match3D2DIDScanResult.getScanResultBlob(FaceTecMatch3D2DIDScanResult.ResultBehaviorOverride.SKIP_NFC_AND_USER_CONFIRMATION);

Make changes to FaceTecSDK-custom-server-9.X.X\src\main\java\com\facetec\customserver\jsonObjects\responses\PhotoIDScanResponse.java

Replace: this.scanResultBlob = scanResultBlob();

With: this.scanResultBlob = idScanOnlyResult.getScanResultBlob(FaceTecIDScanOnlyResult.ResultBehaviorOverride.SKIP_NFC_AND_USER_CONFIRMATION);


Force Retry (Custom Server)

Certain use cases may require the user to rescan their Photo ID. We have added the ability to force a retry from the FaceTec Server.

Make changes to FaceTecSDK-custom-server-9.X.X\src\main\java\com\facetec\customserver\jsonObjects\responses\Match3D2DIDScanResponse.java

Replace: this.scanResultBlob = match3D2DIDScanResult.getScanResultBlob();

With: this.scanResultBlob = match3D2DIDScanResult.getScanResultBlob(FaceTecMatch3D2DIDScanResult.ResultBehaviorOverride.FORCE_RETRY);

Make changes to FaceTecSDK-custom-server-9.X.X\src\main\java\com\facetec\customserver\jsonObjects\responses\PhotoIDScanResponse.java

Replace: this.scanResultBlob = scanResultBlob();

With: this.scanResultBlob = idScanOnlyResult.getScanResultBlob(FaceTecIDScanOnlyResult.ResultBehaviorOverride.FORCE_RETRY);