Skip to content

Sample Project that shows flutter integration of FinBox Lending Flutter SDK

Notifications You must be signed in to change notification settings

finbox-in/lending-sample-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lending Flutter Sample

Sample project that helps with the integration of Lending plugin.

Add Plugin

Specify the following in local.properties file:

ACCESS_KEY=<access_key>
SECRET_KEY=<secret_key>
LENDING_SDK_VERSION=<lending_sdk_version>
DC_SDK_VERSION=<dc_sdk_version>
COMMON_SDK_VERSION=<common_sdk_version>
COMMON_FLAVOR=<common_flavor>
LOGGER_SDK_VERSION=<logger_sdk_version>

Add plugin dependency in pubspec.yaml file:

finbox_lending_plugin: any

Init SDK

 FinBoxLendingPlugin.initSdk(
"Environment",
"Api key",
"Customer ID",
"Customer token",
"Credit Line withdrawl amount");

Start Journey

FinBoxLendingPlugin.startLending();

Handle SDK Journey Result

Set method handler inside build method of your home page

FinBoxLendingPlugin.platform.setMethodCallHandler(_getJourneyResult);

Create a method in dart file to handle this callback.

static Future<void> _getJourneyResult(MethodCall call) async {
if (call.method == 'getJourneyResult')
{var json=call.arguments}
}

Following json will be received

{"code":"code","screen":"screen","message":"message"}

Error Codes

Below table contains the error codes and the description:

error_type Description
MU002 Trial Expired for Dev Credentials
MU003 PDF Password Incorrect
MU004 Specified bank doesn't match with detected bank
MU006 Non Parsable PDF - PDF file is corrupted or has no selectable text (only scanned images)
MU020 Not a valid statement or bank is not supported
MU021 Invalid Date Range
NB000 NetBanking Failed
NB003 Netbanking Login Error
NB004 Captcha Error
NB005 Security Error

About

Sample Project that shows flutter integration of FinBox Lending Flutter SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published