You can also implement our javascript SDK into your project by using the sample script below.
<script src="https://js.myidentitypay.com/v1/inline/kyc.js"></script>// import identitypass JS library
<script>
function verifyKYC() {
IdentityKYC.verify({
merchant_key: "", // your public key
first_name: "", // your user's first name
last_name: "", // your user's last name
user_ref: "", // unique reference id of your user
is_test: false,
email: "", // your user's email address
callback: function (response) {
if(response.status =='success'){
// process your response data here
// please note that the response will also be sent to your webhook URL.
}
else{
// process error message here
}
},
})
}
</script>