0.0.9 • Published 5 years ago

react-native-bankpass v0.0.9

Weekly downloads
9
License
ISC
Repository
github
Last release
5 years ago

Bankpass nodejs SDK

Bankpass SDK for React Native

Table of contents:

Quickstart

Before you begin

  1. Select or create a Bankpass project.
  2. Enable the Authentication API.
  3. Set up authentication with a service account so you can access the API from your local workstation.

Installing the client library

npm install react-native-bankpass

This module also requires react-native-rsa-native. Make sure it is installed and linked

Using the client library

Setup the client using your credentials

const { Bankpass } = require('react-native-bankpass');
// import { Bankpass } from 'bankpass';

const client = new Bankpass({
    credentials: {},
});

Request the user identification

client
    .requestUserIdentification({
        userId,
        requirements: [],
    })
    .then(response => {
        console.log(response.orderId);
    });

Request the user signature

client
    .requestUserSignature({
        userId,
        requirements: [],
    })
    .then(response => {
        console.log(response.orderId);
    });
0.0.9

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago