Integration
KYC SDK
zKYC is a service package that redirects users to the zKYC page, where they go through a KYC verification process.
Before integrating the SDK on your end, you will need to register on zKYC and then generate your production / testing keys.
Call the flow
Invoke ZKYCProcess with the user/session id, your API key, the service type, and redirect URLs.
import React from 'react';
import { ZKYCProcess } from "zkyc-sdk-package";
export default function KYCButton() {
const handleKYC = async () => {
try {
await ZKYCProcess({
apiKey: "prod_***********************************", //either production or testing key
failurePage: `${window.location.origin}/kyc-failed`, //In case of failure, you will be redirected to this page
successPage: `${window.location.origin}/kyc-success`, // In case of success, you will be redirected to this page
});
} catch (error) {
console.error('KYC initiation failed:', error);
alert('Failed to start KYC process. Please try again.');
}
};
return <button onClick={handleKYC}>Start KYC Verification</button>;}Required parameters
| Parameter | Description |
|---|---|
| apiKey | Your API key (test or production). |
| failurePage | URL to redirect the user if verification fails. |
| successPage | URL to redirect the user when verification is completed and the proof is claimed by the user. |
Check our repo in github
Check our demo
Ask an AI
Have an AI explain this page or help you integrate the SDK.