New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-identity-kyc

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-identity-kyc

IdentityPass ReactJS Verification library

latest
Source
npmnpm
Version
1.1.4
Version published
Weekly downloads
23
-30.3%
Maintainers
0
Weekly downloads
 
Created
Source

react-identity-kyc

IdentityPass ReactJS Verification library

INTRODUCING PREMBLY 2.0

NPM JavaScript Style Guide

Install

npm install --save react-identity-kyc

Usage

import React from 'react'
import useIdentityPayKYC from 'react-identity-kyc'

const App = () => {
  const config = {
    first_name:"test",
    last_name:"test",
    email:"kayode@myidentitypass.com",
    merchant_key:"",
    user_ref:"a unique ref for your user",
    is_test:false,  //set this to through for a test
    config_id:"<configuration ID retrieve from your widget settings", //optional
    callback:(response)=>console.log(response)
  }
  const verifyWithIdentity = useIdentityPayKYC(config)

  return <button onClick={verifyWithIdentity} >Click to Test</button>
}
export default App

RESPONSES

1. Failed response:
         {
          code: "E01",
          message: "Message goes here",
          status: "failed"
      }
      
 2. Cancelled
      {
          code: "E02",
          message: "Verification Canceled",
          status: "failed"
      } 
 3. Success
        {
          code: "00",
          status: "success",
          message: "Verification Successful",
          data:{
              //Verification data goes here
              // kindly check official documentation for data structure for each channel
              //https://developer.myidentitypass.com
              },
          channel:"Channel goes here", e.g BVN,NIN and many more

      }

License

MIT © kayode001(Kayode Olayiwola) "# react-identity-kyc"

FAQs

Package last updated on 07 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts