Implement Identity Verification with Jumio on the Web
Implement identity verification on your web page.
Before you start
Before you begin, you already have a working Live Experience-enabled web page, to which you are adding an identity-verification engagement scenario.Here's what to do
In this example, you are listening to the progress indicator to show a busy spinner
while verification is in progress, and then stopping the spinner when the progress
indicator is ready:
document.querySelector("body").addEventListener(
liveApi.controller.events.LiveProgressIndicator, (status) => {
console.log(status ? "Component Busy (show busy spinner)" : "Component Ready (stop busy spinner)");
});
Or, you could listen for when the verification results are obtained so that you can
obtain the associated Jumio reference code (which you can use in REST API calls to
the Jumio
API):
document.querySelector("body").addEventListener(liveApi.controller.events.LivePreCallIDCheckComplete, this.appEventHandler.bind(this));
appEventHandler(event) {
const detail = event.detail;
console.log("appEventHandler: Got event: " + event.type, detail);
if (event.type === liveApi.controller.events.LivePreCallIDCheckComplete) {
console.log("kycScanReference: " + liveApi.controller.service.kycScanReference);
}
...
See the complete list of Live Experience notification events for the web: Oracle Live Experience JavaScript API Reference.