0.10.7 • Published 5 years ago

basiq-connect-bn v0.10.7

Weekly downloads
15
License
-
Repository
-
Last release
5 years ago

Basiq Connect is a javascript library written in React, which allows applicants to securely connect to their bank so lenders can generate an Affordability Report.

Requirements

Basiq Connect requires installation of react and react-dom. Ensure that react and react-dom are at least v16.9.0:

$ npm install react

$ npm install react-dom

Installation

$ npm install basiq-connect

Configuration

Basiq Connect is a function which receives configuration as an input object with following parameters:

  • containerId
    • ID of the DOM element in which Basiq Connect will be rendered
    • Type: String
  • token
    • authentication token
    • Type: String
  • userID
    • ID of the user
    • Type: String
  • connectLinkID
  • upload
    • True if uploading statements should be enabled
    • Type: Boolean
  • connect
    • True if connecting to bank with credentials should be enabled
    • Type: Boolean
  • companyName
    • Name of the company(bank)
    • Type: String

How to use it

Basiq Connect requires authentication. Authentication can be done by providing connect link or access token and user id.

  • Calling Basiq Connect with provided token and userID Add the following code to your .js file:
import BasiqConnect from 'basiq-connect';

BasiqConnect({
    containerId: DOM_CONTAINER_ID,
    token: YOU_TOKEN,
    userID: YOUR_USER_ID,
    upload: TRUE/FALSE,
    connect: TRUE\FALSE,
    companyName: YOUR_COMPANY_NAME
});
  • Calling Basiq Connect with provided connect link: Add the following code to your .js file:
import BasiqConnect from 'basiq-connect';

BasiqConnect({
    containerId: DOM_CONTAINER_ID,
    connectLink: YOUR_CONNECT_LINK,
    upload: TRUE/FALSE,
    connect: TRUE\FALSE,
    companyName: YOUR_COMPANY_NAME
});