Natural Person Portal
The following describes the steps necessary to integrate the Natural Person portal into your website or mobile application.
To integrate the Natural Person Portal into your site, on whatever page you plan to put it on you need the following code:
/* In the <head> tag of the parent page */
<link rel="stylesheet" href="https://verify.icomplykyc.com/main.css" />
/* In the <body> tag of the parent page or component */
<div id="icomply"></div>
<script>
document.body.onload = () => {
iComply.init(document.getElementById('icomply'))
}
</script>
<script src="https://verify.icomplykyc.com/icomply-min.js"></script>
The Natural Person Portal will fill the space of its container, so it's pretty flexible when it comes to where you can integrate it into your website. If all is configured well, you should be able to see the widget "Get Verified" page on your site. Please note the parent site MUST be served over HTTPS, otherwise camera access and liveness will not work.
If your integration is successfully implemented, you should see the following screen on your parent page.

To Prepopulate User Information For the Natural Person Portal
To pre-populate data from the widget parent website, initialize the widget as follows:
Sample parent page for NP portal
Verification Result Callback Examples
The Natural Person Portal will trigger a callback function once the ID has been processed. The result of this callback can be read as follows:
The first callback fires after the user enters their personal information and has the following payload:
The second callback fires after the user submits their identity documents and completes their verification:
This payload can be used to redirect the user based on the result of the ID verification and document authentication.
Last updated