Client Documentation
Step 1: Add verify button
<button class="verify" id="selector">Click to verify</button>Step 2: Add Dentity script
<script src="https://cdn.dentity.com/static/popup/v1/dentity.min.js"></script>Step 3: Configuration Dentity Popup
<script>
window.onload = function () {
let dentity = new Dentity({
element: '#selector,
key: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
});
dentity.onReady(() => {
//A function called when the script has loaded and initialized
});
dentity.onShow(() => {
//A function called when the verification popup is displayed
});
dentity.onHide(() => {
//A function called when the verification popup is closed (hidden)
});
dentity.onChangeStatus((data) => {
//A function that is called when the state of verification changes
});
dentity.onSubmit((data) => {
//A function called on pre submit
});
dentity.onSubmitted((data, err) => {
//A function called when submitted
});
};
</script>Option Name
Description
Function name
Description
Last updated