0.2.46 • Published 3 years ago

@armenotech/kyc-sep12 v0.2.46

Weekly downloads
60
License
MIT
Repository
-
Last release
3 years ago

Using KYC SEP12 React component

📦 Install

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

🔨 Usage

import KYC from '@armenotech/kyc-sep12';

const App = () => {
  const kycStatus = (data) => {
    ...
  };
  
  return (
    <>
      <KYC
        token='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0b3B0YWwuY2...'
        customerId='6b04b6fd-4ea6-4bde-ad3c-289c8a508fa2'
        kycStatus={kycStatus}
        mainBrandColor={}
        onCloseKycHandler={}
        kycServerUrl='https://example-server-url.com'
      />
    </>
  );
};

📄 API

PropertyDescriptionTypeDefaultRequired
languageLocalization.  Available languages: en.stringen-
tokenJWT tokenstring-required
customerIdParameter for search user by idstring-required
kycStatusKYC levels status callback.(data) => object--
mainBrandColorYou can change main brand color of color scheme.string#1E6DFF-
onCloseKycHandlerKYC close (close when kyc approved) callback.(data) => object--
kycServerUrlServer urlstring-required

kycStatus callback answer example:

{
    status: 'NEEDS_INFO', // KYC status.
    id: '6b04b6fd-4ea6-4bde-ad3c-289c8a508fa2', // Customer id.
    level: '1', // KYC current level.
}

Level statuses description:

  • ACCEPTED - document set has been accepted
  • PROCESSING - document set is in flight and client can check again in the future to see if any further info is needed
  • NEEDS_INFO - document set needs more info to be provided to finish KYC
  • REJECTED - This users KYC has failed and will never succeed

How to use get status method:

import { kycStatus } from '@armenotech/kyc-sep12';

const { status, id, current_level } = await kycStatus({
    token: 'sSDJSKJDSDHH-SJDHJSHJSDsdasd-asdasd..., // JWT token.
    customerId: 'uwueriewur-nxcv4u3-jsdf7343-dfjsnf443', // Customer id.
    kycServerUrl: 'https://...', // KYC server url.
});

You will get:

  • status - status of KYC;
  • id - KYC customer id;
  • current_level - KYC current level;
0.2.46

3 years ago

0.2.45

3 years ago

0.2.44

3 years ago

0.2.43

3 years ago

0.2.42

3 years ago

0.2.27

3 years ago

0.2.26

4 years ago

0.2.25

4 years ago

0.2.41

3 years ago

0.2.40

3 years ago

0.2.39

3 years ago

0.2.30

3 years ago

0.2.38

3 years ago

0.2.37

3 years ago

0.2.36

3 years ago

0.2.35

3 years ago

0.2.34

3 years ago

0.2.33

3 years ago

0.2.32

3 years ago

0.2.31

3 years ago

0.2.29

3 years ago

0.2.28

3 years ago

0.2.24

4 years ago

0.2.23

4 years ago

0.2.22

4 years ago

0.2.21

4 years ago

0.2.20

4 years ago

0.2.19

4 years ago

0.2.18

4 years ago

0.2.17

4 years ago

0.2.16

4 years ago

0.2.15

4 years ago

0.2.14

4 years ago

0.2.13

4 years ago

0.2.11

4 years ago

0.0.29-alpha

4 years ago

0.0.31

4 years ago

0.2.10

4 years ago

0.1.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.4

4 years ago

0.0.28

4 years ago

0.0.27

4 years ago

0.0.26

4 years ago

0.0.25

4 years ago

0.0.24

4 years ago

0.0.22

4 years ago

0.0.23

4 years ago

0.0.20

4 years ago

0.0.21

4 years ago

0.0.19

4 years ago

0.0.17

5 years ago

0.0.18

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.12

5 years ago

0.0.13

5 years ago

0.0.14

5 years ago

0.0.10

5 years ago

0.0.11

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.5

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.1

5 years ago