-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
671c320
commit 66a48a1
Showing
1 changed file
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,66 @@ | ||
# vimos-web | ||
# VIMOS WEB SDK | ||
|
||
 | ||
|
||
# Table Of Content | ||
- [Quick Start](#quick-start) | ||
- [Help](#help) | ||
|
||
## Quick Start | ||
|
||
Web SDK Integration | ||
|
||
- Import [atlaskyc.js]() script to your HTML file | ||
|
||
```html | ||
<script src="atlaskyc.js"> | ||
``` | ||
- Invoke AtlasKYC on a button click or on similar user input event | ||
```html | ||
<input type="button" onClick="openAtlasKYC()" value="AtlasKYC"> | ||
``` | ||
Method 1: To open AtlasKYC in a new window | ||
```javascript | ||
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 | ||
```html | ||
<div class="atlas-kyc"></div> | ||
``` | ||
```javascript | ||
function openAtlasKYC(){ | ||
let atlasKYC = new AtlasKYC({ | ||
method: "iframe", | ||
containerClassName:"atlas-kyc", | ||
onFinish: () => { | ||
// Callback function | ||
} | ||
}); | ||
atlasKYC.open(ATLAS_KYC_URL); | ||
} | ||
``` | ||
## Help | ||
For any queries/feedback , contact us at `support@frslabs.com` |