sonic-widget 1.50.3 → 1.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/dist/index.js +9577 -9547
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Use this script tag to get access to the widget:
|
|
6
6
|
|
|
7
7
|
```html
|
|
8
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.
|
|
8
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.51.0/dist/index.min.js"></script>
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
or
|
|
@@ -32,7 +32,7 @@ and adding path in `angular.json`
|
|
|
32
32
|
2. Use this script tag to get access to the widget at initial html page:
|
|
33
33
|
|
|
34
34
|
```html
|
|
35
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.
|
|
35
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.51.0/dist/index.min.js"></script>
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
or
|
|
@@ -73,6 +73,7 @@ ngOnInit(): void {
|
|
|
73
73
|
videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
|
|
74
74
|
appId: string, // application policy identifier
|
|
75
75
|
accountId: string, // account can be taken from operator axiom account
|
|
76
|
+
appName: string, // representing name of the application
|
|
76
77
|
userName: string, // user prospective data
|
|
77
78
|
userId: string, // user document number to identity
|
|
78
79
|
email: string, // user prospective data
|
|
@@ -115,7 +116,7 @@ ngOnInit(): void {
|
|
|
115
116
|
4. Add a Script tag to the head tag or body tag. And use the latest version.
|
|
116
117
|
|
|
117
118
|
```html
|
|
118
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.
|
|
119
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.51.0/dist/index.min.js"></script>
|
|
119
120
|
```
|
|
120
121
|
|
|
121
122
|
5. Next, add the script tag at a necessary place. But add below the widget script.
|
|
@@ -128,6 +129,7 @@ ngOnInit(): void {
|
|
|
128
129
|
ipInfoKey: string, // api key to detect vpn used or not from "ipInfo.io" (Optional)
|
|
129
130
|
videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
|
|
130
131
|
appId: string, // application policy identifier
|
|
132
|
+
appName: string, // representing name of the application
|
|
131
133
|
accountId: string, // account can be taken from operator axiom account
|
|
132
134
|
userName: string, // user prospective data
|
|
133
135
|
userId: string, // user document number to identity
|
|
@@ -173,6 +175,7 @@ Check with **`data.code`**_
|
|
|
173
175
|
- _**`isMalay`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget default language english or malay._
|
|
174
176
|
- _**`branchId`** should pass as a string value. It is used to find bank branch available for operator account for onboard sonic kyc._
|
|
175
177
|
- _**`appId`** should pass as a string value. It is used to find an application policy for onboard sonic kyc._
|
|
178
|
+
- _**`appName`** should pass as a string value. It is used for onboard kyc application name. default it is Sonic._
|
|
176
179
|
- _**`userName`** should pass as a string value. It is used to create an application for onboard sonic kyc._
|
|
177
180
|
- _**`userId`** should pass as a string value. It is used to create an application for onboard sonic kyc and to compare your identity with the document._
|
|
178
181
|
- _**`email`** should pass as a string value. It is used to create an application for onboard sonic kyc and it is optional._
|