# BankConnect: Cordova
BankConnect Cordova SDK helps user submits their bank statements via upload or net banking credentials in your Android application.
# Setting up the bridge
Install the Cordova SDK from the npm package:
cordova plugin add cordova-plugin-finbox-bankconnect
Specify the following in
local.properties
file:AWS_KEY=<ACCESS_KEY> AWS_SECRET=<SECRET_KEY> FINBOX_BC_VERSION=<BANKCONNECT_SDK_VERSION>
# Start BankConnect journey
Call openBankConnect
method using the FinBoxBankConnectPlugin
instance to open BankConnect journey. It takes LINK_ID
as one of its arguments which is a unique identifier for a user.
IMPORTANT
- Please make sure
LINK_ID
is not more than 64 characters and is alphanumeric (with no special characters). Also it should nevernull
or a blank string""
. - By default the SDK will request for 6 months data. In order to pass custom date range make use of these params
FROM_DATE
&TO_DATE
. FROM_DATE
&TO_DATE
should be of the formatDD/MM/YYYY
. AndTO_DATE
should NOT be todays date
The response to this method (success or failure) can be captured using the callback
cordova.plugins.FinBoxBankConnectPlugin.openBankConnect("CLIENT_API_KEY", "CUSTOMER_ID", "FROM_DATE", "TO_DATE", function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
← Flutter JavaScript →