1.1.11 • Published 2 years ago

nativescript-jumio v1.1.11

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
2 years ago

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

import { Jumio } from 'nativescript-jumio';

try {
    new Jumio({
        merchantApiToken: 'YOUR_API_TOKEN',
        merchantApiSecret: 'YOUR_API_SECRET',
        customerId: 'customerId',
        cancelWithError: (_error: NetverifyError) => {
            // User cancelled after error
        },
        finishInitWithError: (_error: NetverifyError) => {
            // Finished initialization with an error
        },
        finishedScan: (documentData: NetverifyDocumentDataExtended, _scanReference: string) => {
            // Scan is successful
        }
    });
} catch (err) {
    console.log("EXCEPTION", err)
}

TODO

  • Plugin works on iOS only currently.
  • Integration with Android is required. Native Android objects are exposed, and can be used however they still need to be exposed for easier integration.

API

PropertyTypeRequiredDefaultDescription
merchantApiTokenstringyesAPI token
merchantApiSecretstringyesAPI secret
customerIdstringCustomer ID
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

1.1.11

2 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago