Web SDK Integration
- Import atlaskyc.js script to your HTML file
<script src="atlaskyc.js">
- Invoke AtlasKYC on a button click or on similar user input event
<input type="button" onClick="openAtlasKYC()" value="AtlasKYC">
Method 1: To open AtlasKYC in a new window
function openAtlasKYC(){
let atlasKYC = new AtlasKYC({
method: "window",
onFinish: () => {
// Callback function
}
});
atlasKYC.open(ATLAS_KYC_URL);
}
The onFinish function will be called once the KYC is done.
Method 2: To open AtlasKYC in an iframe
Create a DIV element like below
<div class="atlas-kyc"></div>
function openAtlasKYC(){
let atlasKYC = new AtlasKYC({
method: "iframe",
containerClassName:"atlas-kyc",
onFinish: () => {
// Callback function
}
});
atlasKYC.open(ATLAS_KYC_URL);
}
For any queries/feedback , contact us at support@frslabs.com