zkKYB - Know Your Business
Use Case
To reduce development costs, you can use the zkMe KYB Widget to handle the entire business verification process. Users can complete the full KYB verification directly on your web/H5 application, minimizing user churn by eliminating the need to navigate to another page.
zkMe KYB Widget Process
The KYB verification flow consists of the following steps:
Step 1: Enter the service authorization Widget page; the user confirms and proceeds to the next step.
Step 2: Email verification login.
Step 3: Fill in company basic information.
Step 4: Fill in UBO (Ultimate Beneficial Owner) / SMO (Senior Managing Official) information.
Step 5: Trigger controller KYC/PoA verification for each controlling person.
Step 6: Upload corporate documents.
Step 7: Submit for review. The application status will then move to "Info Submitted" and await manual review by the zkMe compliance team.
Integration via NPM
You can refer to @zkmelabs/kyb-widget and please make sure to use the latest version.
Installation
Getting Started
Step 1. Import styles
Step 2. Create a new ZkMeKybWidget instance
ZkMeKybWidget instanceoptions.programNo
string
If you have activated multiple programs running in parallel, please pay attention to this setting:
The param can be found in Dashboard and please make sure the program is enabled. The SDK will take the number of the first activated program as the default value if this parameter is not provided in the code.
Step 3. Listen to the kybFinished widget events to detect when the user has completed the zkKYB process.
kybFinished widget events to detect when the user has completed the zkKYB process.Event Callback Parameters
The kybFinished event callback receives a results object with the following properties:
status
int
Indicates the current verification status of the KYB process.
Status codes are defined as follows:
1– Verification Started2– Info Submitted3– Under Review4– Resubmission Required5– Verification Passed6– Verification Failed
externalID
string
The entity identifier from your system, echoed back by the SDK. This is the same value you returned as externalID in the getExternalID() function (for example, a corporate email address, phone number, or an internal user ID).
zkMeAccount
string
The zkMe internal account identifier.
Step 4. Launch the zkMe KYB widget and it will be displayed in the center of your webpage.
Helper functions
verifyKybWithZkMeServices()
Before launching the widget, you should check the zkKYB status of the user and launch the widget when the check result is false.
appId
string
This parameter means the same thing as "mchNo"
externalID
string
The unique identifier provided by you to reference the KYB entity to be verified. This should match the getExternalID() passed by provider.getExternalID.
options.programNo
string?
If you have activated multiple programs running in parallel, please pay attention to this setting: The param can be found in Dashboard and please make sure the program is enabled. The SDK will take the number of the first activated program as the default value if this parameter is not provided in the code.
Return Value
The function returns an object with the following property:
status
int
The current verification status as an integer. See the status codes table below.
statusDesc
string
A human-readable description of the current verification status.
Status Codes Explanation
1
Verification Started
The KYB verification process has been initiated.
2
Info Submitted
The user has completed and submitted their information.
3
Under Review
The submitted information is being reviewed by the compliance team.
4
Resubmission Required
Further information or clarification is needed.
5
Verification Passed
The KYB verification was successful.
6
Verification Failed
The KYB verification was unsuccessful.
How to Generate an Access Token with API_KEY
To use your API_KEY to obtain an accessToken, you will need to make a specific HTTP request. Here's how you can do it:
apiKey
True
string
The API_KEY provided by zkMe.
appId
True
string
A unique identifier (mchNo) to DApp provided by zkMe.
ZkMeKybWidget instance methods
Last updated