react-native-bankpass
v0.0.9
Published
Bankpass SDK for React Native
Downloads
7
Readme
Bankpass nodejs SDK
Bankpass SDK for React Native
- [Bankpass Client API Reference][client-docs]
Table of contents:
Quickstart
Before you begin
- [Select or create a Bankpass project][projects].
- [Enable the Authentication API][enable_api].
- [Set up authentication with a service account][auth] 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);
});