klp-ekyc-sdk
v1.0.22
Published
[Demo + Docs](https://ekyc-js.kalapa.vn/)
Downloads
6
Readme
Ekyc Reactjs
Demo Code
<div id="ekyc_wrap"></div>
<script>
var options = {
wrap_id: '#ekyc_wrap',
app_token: '[APP_TOKEN],
error_messages: '[CUSTOM_ERROR_MESSAGES]',
render_result: true,
snapshot_by: 'input_capture',
success_function: function (resultData) {
console.log(resultData);
},
welcome_page_function: function (startFunction) {
jQuery('#ekyc_wrap').css({
backgroundImage: 'url(https://gcdn.pbrd.co/images/xCqzrT5p773l.jpg)', // linear-gradient(#00123a, #0058c6)
backgroundSize: '100% 100%',
backgroundPosition: 'center',
color: 'white'
});
jQuery('#welcome_page').appendTo('#ekyc_wrap');
jQuery('#welcome_page').css('display', 'flex');
jQuery('#start_button').click(function () {
startFunction();
});
},
axios_install: true,
sweetalert2_install: false,
style: '[CUSTOM_STYLES]',
handle_result: 'socket',
animation: true
};
ekycSDK.init(options);
</script>