@armenotech/kyc

1.0.1 • Public • Published

Using KYC React component

📦 Install

npm install --save @armenotech/kyc
yarn add @armenotech/kyc

🔨 Usage

import KYC from '@armenotech/kyc';

const App = () => {
  const kycStatus = (data) => {
    ...
  };
  
  return (
    <>
      <KYC
        level={Number(level)}
        cookieName='kyc_api_token'
        appId='67erfe53-674365-5465jhjds-fgjdhg'
        kycStatus={kycStatus}
      />
    </>
  );
};

📄 API

Property Description Type Default
level Current level to show (from 1 to 4) number 1
language Localization.  Available languages: en. string en
cookieName Cookie name string -
appId Application id string -
kycStatus KYC levels status callback. (data) => object -

kycStatus callback answer example:

{
    1: 'ready', // Level status.
    2: 'notReady', // Level status.
    3: 'notReady', // Level status.
    4: 'notReady', // Level status.
    kycPassed: false, // Is KYC passed.
    needToApproveLevel: 2, // Level which need to approve.
}

Level statuses description:

  • ready - document set ready for verification
  • notReady - document set not ready for verification
  • pending - document set in verification process
  • reject - document set rejected and document need re-check
  • done - document set approved

/@armenotech/kyc/

    Package Sidebar

    Install

    npm i @armenotech/kyc

    Weekly Downloads

    10

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.21 MB

    Total Files

    364

    Last publish

    Collaborators

    • armenotech-npm-releaser-bot
    • yorik0512