<script>
function initiateWidget() {
var verificationEngine = IdentityKYC.verify({
merchant_key: "your public key – only live public key is supported for now",
first_name: "",
last_name: "",
email: "",
config_id: "your widget id - you can get this from the checker widget page on the dashboard",
user_ref: "",
callback: function (response) {
console.log("callback Response", response);
if(response.status === 'success'){
alert("Information Verified");
} else {
alert(response.message);
}
},
});
}
</script>