0.0.11 • Published 6 years ago
bankpass-node v0.0.11
Bankpass nodejs SDK
Bankpass SDK for NodeJS
Table of contents:
Quickstart
Before you begin
- Select or create a Bankpass project.
- Enable the Authentication API.
- Set up authentication with a service account so you can access the API from your local workstation.
Installing the client library
npm install bankpass
Using the client library
Setup the client using your credentials
const {Bankpass} = require('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);
})