Socket
Socket
Sign inDemoInstall

nativescript-jumio

Package Overview
Dependencies
11
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nativescript-jumio

NativeScript Jumio.


Version published
Weekly downloads
1
decreased by-91.67%
Maintainers
1
Install size
15.6 MB
Created
Weekly downloads
 

Readme

Source

NativeScript Jumio

nativescript-jumio

Jumio Mobile SDK plugin for NativeScript.

This plugin is compatible only with NativeScript 7.1+. Please file an issue or make a PR if you spot any problems or you have any further requests regarding the functionality.

Currently only ID verification is implemented. Please check Usage or demo/ directory for more details.

Prerequisites / Requirements

Nativescript 7.1+ is required for the plugin to run properly.

Installation

tns plugin add nativescript-jumio

or

npm install nativescript-jumio

Usage

nativescript-jumio

Make sure to include this activity inside the consumer's Android Manifest:

<activity
    android:theme="@style/Theme.Netverify"
    android:hardwareAccelerated="true"
    android:name="com.jumio.nv.NetverifyActivity"
    android:configChanges="orientation|screenSize|screenLayout|keyboardHidden" />

Ensure that Kotlin version is set to 1.4.30 inside gradle.properties file

kotlinVersion=1.4.30

import { Jumio } from 'nativescript-jumio';

try {
    const jumio = new Jumio({
        merchantApiToken: 'YOUR_API_TOKEN',
        merchantApiSecret: 'YOUR_API_SECRET',
        datacenter: 'EU | US | SG',
    });

    jumio.init({
        customerId: 'customerId',
        callbackUrl: 'Custom callback URL',
        preSelectedData: {
            country: 'Alpha2 Country Code',
            documentType: 'passport | identity_card | driver_license | visa',
        },
        cancelWithError: (error) => {
            // User cancelled after error
        },
        finishInitWithError: (error) => {
            // Finished initialization with an error
        },
        finishedScan: (documentData, scanReference) => {
            // Scan is successful
        },
    });
} catch (err) {
    console.log("EXCEPTION", err)
}

API

PropertyTypeRequiredDefaultDescription
merchantApiTokenstringyesAPI token
merchantApiSecretstringyesAPI secret
datacenterstringyesData Center to use
customerIdstringyesCustomer ID
callbackUrlstringNoCustom Callback URL
preSelectedDataObjectNonullPre-selected country as alpha2 code and document type
cancelWithErrorfunctCallback triggered when User cancels. It accepts error object with code and message.
finishInitWithErrorfunctCallback triggered when initialization fails. It accepts error object with code and message.
finishedScanfunctCallback triggered when scan is finished. It contains an extended Document Data with all necessary information about processing results.

License

Apache License Version 2.0, January 2004

Keywords

FAQs

Last updated on 15 Nov 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc