Skip to content

Sample Project that shows flutter integration of FinBox BankConnect Flutter SDK

Notifications You must be signed in to change notification settings

finbox-in/bank-connect-sample-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter BankConnect

The plugin can be used to integrate mobile apps with BankConnect.

NOTE

Following will be shared by FinBox team at the time of integration:

  • ACCESS_KEY
  • SECRET_KEY
  • BC_SDK_VERSION
  • CLIENT_API_KEY

Add Plugin

Specify the following in local.properties file:

ACCESS_KEY=<ACCESS_KEY>
SECRET_KEY=<SECRET_KEY>
BC_SDK_VERSION=<SDK_VERSION>

Add plugin dependency in pubspec.yaml file:

finbox_bc_plugin: any

Init Library in Kotlin Application

class MainApp:FlutterApplication() {
    override fun onCreate() {
        super.onCreate()
        FinBoxBcPlugin.initLibrary(this)
    }
}

Init SDK

FinBoxBcPlugin.initSdk("CLIENT_API_KEY","FROM_DATE","TO_DATE","BANK_NAME");

Handle SDK Journey Result

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

{"entityId":"entity_id","linkId":"link_id","error_type":"error_code","message":"msg"}

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 BankConnect Flutter SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published