zKYC
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.

Install

Add the SDK to your application.

npm install zkyc-sdk-package@latest

Call the flow

Invoke ZKYCProcess with the user/session id, your API key, the service type, and redirect URLs.

KYCButton.tsx
import React from 'react';
import { ZKYCProcess } from "zkyc-sdk-package";

export default function KYCButton() {
const handleKYC = async () => {
  try {
    await ZKYCProcess({
      apiKey: "prod_***********************************",
      failurePage: `${window.location.origin}/kyc-failed`,
      successPage: `${window.location.origin}/kyc-success`,
    });
  } 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

ParameterDescription
apiKeyYour API key (test or production).
failurePageURL to redirect the user if verification fails.
successPageURL 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.

On this page