finbox_bureau_plugin

Last updated:

0 purchases

finbox_bureau_plugin Image
finbox_bureau_plugin Images
Add to Cart

Description:

finbox bureau plugin

BureauConnect: Flutter #
BureauConnect Flutter SDK is a wrapper around Android SDK which helps you take consent from the user through your Android application before fetching the bureau details.
Add Plugin #
Specify the following in local.properties file:
ACCESS_KEY=<ACCESS_KEY>
SECRET_KEY=<SECRET_KEY>
FBC_SDK_VERSION=<FBC_SDK_VERSION>
copied to clipboard
Add plugin dependency in pubspec.yaml file:
finbox_bureau_plugin: any
copied to clipboard
::: warning NOTE
Following will be shared by FinBox team at the time of integration:

ACCESS_KEY
SECRET_KEY
FBC_SDK_VERSION
CLIENT_API_KEY
:::

Build Bureau Connect #
Build the FinBoxBureauConnect object by passing apiKey, customerId, firstName, lastName and phoneNumber.
ENVIRONMENT is an optional field. Default value of environment is PROD.
::: tip Note
ENVIRONMENT needs to be updated to PROD when migrating application to production.
:::
Now that all required parameters are available, we can start the SDK flow as follows:
FinBoxBureauPlugin.initSdk("<ENVIRONMENT>",
"<CLIENT_API_KEY>",
"<CUSTOMER_ID>",
"CUSTOMER_FIRST_NAME",
"CUSTOMER_LAST_NAME",
"CUSTOMER_PHONE_NUMBER");
copied to clipboard
Start SDK flow #
Start BureauActivity
FinBoxBureauPlugin.startBureauJourney();
copied to clipboard
Parse the results #
Once the user has granted the consent, the SDK will be automatically closed. Once the SDK closes, the success or failure result will be returned
Listen to the result callbacks from build method.
FinBoxBureauPlugin.platform.setMethodCallHandler(_getBureauJourneyResult);
copied to clipboard
static Future<void> _getBureauJourneyResult(MethodCall call) async {
if (call.method == 'getBureauJourneyResult') {
var resultJson = call.arguments
}
}
copied to clipboard
Following json will be received
{"consent_given":true,"error_type":"error_code","message":"msg"}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.