The Prembly Identitypass SDK is a library that allows you to easily integrate verification services into your JS/TS app. The SDK is based on the Prembly Identitypass API, which provides a range of verification services, including data verification, identity verification, document verification, biometric verification, radar verification and other verification services.
The Prembly Identitypass SDK offers the following features:
-
Data verification: verify the authenticity of datas from different countries and sources such as stamp duty, plate numbers, NIN, international passport, bvn, government-issued IDs, credit reports etc.
-
Global business verification: get essential company information you are doing/want to have a business with by verifying their authenticity, as well as for marketing and sales purposes by searching using company name, customer details, email, or country code, adhering to ISO-3166-1 Alpha-2 standards, and biometric-based registration verification.
-
Document verification: you can easily add document verification to your software applications by using document image verification method. It's a simple and efficient way to automate document verification across regions like Asia-Pacific (APAC), Europe, Middle East, and Africa (EMEA), North America (NA), and South America (SA).
-
Biometrics: Enroll and authenticate your users by utilizing facial recognition method. This allows you to register and verify your users' identities using their unique facial features.
-
Identity Radar: prevents fraud in digital businesses using quality data and our AI engine. Choose our Fraud Detection & Prevention solution for peace of mind.
-
General: you can also use other verification services.
- node.js
- API credentials from Prembly Identitypass
To install the Prembly IdentityPass SDK, you can use npm, yarn and pnpm.
Using npm:
npm install prembly-identitypass-sdk
Using yarn:
yarn add prembly-identitypass-sdk
Using pnpm:
pnpm install prembly-identitypass-sdk
After installing the app, you can import the SDK to use as follow:
import PremblyVerificationService,{ DataVerificationService, RadarVerificationService } from 'prembly-identitypass-sdk';
const config = {
apiKey = 'your_prembly_app_api_key';
appId = 'your_prembly_app_id';
env = 'default is set to test'; //should be changed to live
}
//creating an instance
const premblyVerifier = new PremblyVerificationService(config);
//you can access all prembly verification service here with their method aside data-verification and radar which has its own instance.
premblyVerifier.scope.method.then((res) => console.log(res));
//for radar, its different you have to create an instance of its own as follow:
const config = {appToken: 'your_prembly_apptoken'}
const premblyRadarVerifier = new RadarVerificationService(config)
//to use it
premblyRadarVerifier.radar({your field}).then(res => console.log(res))
You can access all the verification services from the prembly instance aside from the data verification and radar service that has its own instance.
Each country service can be accessed by their acronym as follow:
import { DataVerificationService } from 'prembly-identitypass-sdk';
//for data verification its different you have to create an instance of its own as follow:
const premblyDataVerifier = new DataVerificationService(config)
//after setting the config, you can access different country and their data verification service as shown:
premblyDataVerifier.countryService.method.then((res)=> console.log(res))
eg: verify bvn data method in Nigeria service
premblyDataVerifier.ngService.bvn({ number: XXXX XXXX XXXX XXXX }).then((res) => console.log(res))
Sn | Country | Acronym |
---|---|---|
1 | Nigeria | ngService |
2 | Ghana | ghService |
3 | Kenya | kyService |
4 | Rwanda | rwService |
5 | Sierra Leone | slService |
6 | South Africa | saService |
7 | Uganda | ugService |
8 | Mashup | mashupService |
Available methods are:
SN | METHOD NAME | DESCRIPTION && REQUIRED FIELD |
---|---|---|
1 | cac | Verify a business using rc_number and company_type |
2 | cacWithName | Verify a business using company_name |
3 | cacAdvance | _Verify a business using rc_number, company_name and company_type |
4 | bvn | Verify a Bank Verification Number using number (BVN) |
5 | bvnAdvance | _Verify a Bank Verification Number using number (BVN) _ |
6 | bvnWithFace | Verify a Bank Verification Number (BVN) using image and number |
7 | phoneNo | Verify a Phone Number using number (PHONE NUMBER) |
8 | bankCodes | Get all banks code |
9 | bankAccount | Verify bank account number using number(ACCT NO) and bank_code |
10 | bankAcctComparism | Verify bank account number and compare name with customer name using number(ACCT NO), bank_code, customer_name and customer_reference |
11 | bankAcctAdvance | _Verify bank account number using number(ACCT NO) and bank_code _ |
12 | votersCard | Verify voters card using number(VOTERS CARD NO), first_name, last_name, lga, dob, state |
13 | votersCardWithImage | _Verify voters card ID image using image _ |
14 | driversLicense | Verify drivers license using dob(DATE OF BIRTH) and number(FRSC NO) |
15 | basicDriversLicense | Verify drivers license using dob(DATE OF BIRTH), number(FRSC NO), first_name, and last_name :returns true or false |
16 | driversLicenseAdvance | Verify drivers license using dob(DATE OF BIRTH), number(FRSC NO), first_name, and last_name returning full info |
17 | driversLicenseImage | Verify drivers license ID image using image |
18 | driversLicenseFaceID | Verify drivers license with face validation using dob(DATE OF BIRTH), number(FRSC NO), and image |
19 | intlPassportSync | Verify international passport using number(PASSPORT NO) and last_name |
20 | intlPassportWithImg | Verify international passport using image |
21 | intlPassportWithFace | Verify international passport with face validation using number(PASSPORT NO), last_name, and image |
22 | intlPassportAsync | Verify international passport in an asynchronous manner using number(PASSPORT NO) and last_name |
23 | creditBureau | Get User Credit bureau statement using phone_number and first_name |
24 | creditBureauConsumerBasic | Get basic credit details of a user using number or dob, customer_reference, customer_name and select MODE (if mode is ID, then number will be bvn or if mode is BIO then dob else the number and dob) |
25 | creditBureauConsumerAdvance | Get advance credit details of a user using number or dob, customer_reference, customer_name and select MODE (if mode is ID, then number will be bvn or if mode is BIO then dob else the number and dob |
26 | creditBureauComBasic | Get basic credit details of a business using rc_number, customer_reference, and customer_name) |
27 | creditBureauComAdvance | Get advance credit details of a business using rc_number, customer_reference, and customer_name |
28 | creditBureauMashup | Verify credit bureau statement of a user and returns data for two credit sources using customer_name, customer_reference and number(BVN) |
29 | nin | Verify a National Identification Number(NIN) Slip using number(VNIN) or number_nin(RAW NIN) |
30 | ninWithImage | Verify a National Identification Number(NIN) Slip using image |
31 | ninWithFace | Verify a National Identification Number(NIN) with user's image using image and number(NIN) |
32 | stampDuty | _Verify a stamp duty reference number using number(STAMP DUTY NO), customer_name and customer_reference _ |
33 | vehiclePlateNo | _Verify a vehicle number plate using vehicle_number _ |
34 | tin | _Verify tax identification number using number(TIN |
Available methods are:
SN | METHOD NAME | DESCRIPTION && REQUIRED FIELD |
---|---|---|
1 | driversLicense | _Verify user drivers license using dob and number(LICENSE NO) _ |
2 | ssnit | Verify Social Security and National Insurance Trust Number using number(SSNIT NO) |
3 | ssnitWithFace | Verify Social Security and National Insurance Trust Number With Face Validation using number(SSNIT NO) and image(face image) |
4 | votersCard | _Verify voters card using number(VOTER'S CARD NO) and type (MAIN |
5 | intlPassport | Verify user international passport using number(PASSPORT NO) |
Available methods are:
SN | METHOD NAME | DESCRIPTION && REQUIRED FIELD |
---|---|---|
1 | driversLicense | Verify user drivers license using number(LICENSE NO), customer_name and customer_reference |
2 | passport | Verify user passport using number(PASSPORT NO), customer_name and customer_reference |
3 | serialNo | Verify user serial number |
4 | nin | Verify user national identity number |
5 | nationalIdentity | Verify and authenticate foreign resident |
Available methods are:
SN | METHOD NAME | DESCRIPTION && REQUIRED FIELD |
---|---|---|
1 | driversLicense | Verify user drivers license |
2 | votersCard | Verify voters card |
Available methods are:
SN | METHOD NAME | DESCRIPTION && REQUIRED FIELD |
---|---|---|
1 | nationalIdentity | Verify user national id card |
2 | business | Verify a business |
Available methods are:
SN | METHOD NAME | DESCRIPTION && REQUIRED FIELD |
---|---|---|
1 | passport | Verify Rwandan passport |
2 | nationalIdentity | Verify national identity card issued to Rwandan |
Available methods are:
SN | METHOD NAME | DESCRIPTION && REQUIRED FIELD |
---|---|---|
1 | business | Verify a business |
Each verification service can be accessed by their acronym as follow:
Sn | Name | Acronym |
---|---|---|
1 | Biometric | biometricService |
2 | Document | documentService |
3 | Global | globalService |
Author: Abdulafeez(PragmaticAweds)
Follow me on
- Github @pragmaticAweds
- LinkedIn @abdulafeez (pragmaticaweds) jimoh
- Twitter @pragmatic_aweds