ionic-bank-connect-sdk
v0.1.0
Published
BankConnect Ionic SDK helps user submits their bank statements via upload or net banking credentials in your Android application.
Downloads
3
Readme
ionic-bank-connect-sdk
BankConnect Ionic SDK helps user submits their bank statements via upload or net banking credentials in your Android application.
Install
npm install ionic-bank-connect-sdk
Authentication
Open Android Studio and in the project level build.gradle file, add the repository URLs to all allprojects block.
maven {
url "s3://risk-manager-android-sdk/artifacts"
credentials(AwsCredentials) {
accessKey = "<ACCESS_KEY>"
secretKey = "<SECRET_KEY>"
}
content {
includeGroup("in.finbox")
}
}
Add the following keys in local.properties
file:
ACCESS_KEY=<ACCESS_KEY>
SECRET_KEY=<SECRET_KEY>
BC_SDK_VERSION=<BC_SDK_VERSION>
COMMON_SDK_VERSION=<COMMON_SDK_VERSION>
COMMON_FLAVOR=<COMMON_FLAVOR>
LOGGER_SDK_VERSION=<LOGGER_SDK_VERSION>
::: warning NOTE Following will be shared by FinBox team at the time of integration:
- ACCESS_KEY
- SECRET_KEY
- BC_SDK_VERSION
- COMMON_SDK_VERSION
- COMMON_FLAVOR
- LOGGER_SDK_VERSION
- CLIENT_API_KEY :::
Register the Plugin
Inside the app’s MainActivity
, use registerPlugin
method to register Ionic Bank Connect plugin
// Register the Bank Connect Plugin
registerPlugin(IonicBankConnectSdkPlugin.class);
Start BankConnect journey
Call openBankConnect method using the IonicBankConnectSdk instance to open BankConnect journey.
const result = await IonicBankConnectSdk.openBankConnect(options: { apiKey: CLIENT_API_KEY, customerId: CUSTOMER_ID, fromDate: FROM_DATE, toDate: END_DATE });