npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@global66/sdk-jumio-ns

v0.2.7

Published

NativeScript Jumio.

Downloads

14

Readme

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 @global66/sdk-jumio-ns

or

npm install @global66/sdk-jumio-ns

Usage

@global66/sdk-jumio-ns

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 '@global66/sdk-jumio-ns';

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

| Property | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | merchantApiToken | string | yes | | API token | | merchantApiSecret | string | yes | | API secret | | datacenter | string | yes | | Data Center to use | customerId | string | yes | | Customer ID | callbackUrl | string | No | | Custom Callback URL | preSelectedData | Object | No | null | Pre-selected country as alpha2 code and document type | cancelWithError | funct | | | Callback triggered when User cancels. It accepts error object with code and message. | | finishInitWithError | funct | | | Callback triggered when initialization fails. It accepts error object with code and message. | | finishedScan | funct | | | Callback 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