go_saffe_flutter

Last updated:

0 purchases

go_saffe_flutter Image
go_saffe_flutter Images
Add to Cart

Description:

go saffe flutter

GoSaffeCapture Flutter #
Usage #
To use GoSaffeCapture in your application, follow these steps:

Import the package go_saffe_flutter/go_saffe_flutter.dart.

import 'package:go_saffe_flutter/go_saffe_flutter.dart';
copied to clipboard

Create an instance of GoSaffeCapture with the necessary parameters, including the API key, user identifier, type, and end-to-end ID. Additionally, define the onFinish and onClose callback functions to handle the corresponding events received from the WebView.

GoSaffeCapture(
captureKey: '', // capture key (sandbox or production)
user: '', // end-user identifier (either email or CPF)
type: '', // 'onboarding' or 'verification'
endToEndId: '', // identifier to keep consistency between front and backend
onFinish: () {
// Do something when the finish event is received
print('Finish event received');
},
onClose: () {
// Do something when the close event is received
print('Close event received');
},
onTimeout: () {
// Do something when the timeout event is received
print('Timeout event received');
},
onError: () {
// Do something when the return some error on rendering screen
print('Error received');
}
),
copied to clipboard

Add the GoSaffeCapture widget where you want it to be displayed in your user interface.

Scaffold(
appBar: AppBar(
title: Text('Example of GoSaffeCapture'),
),
body: Center(
child: GoSaffeCapture(
captureKey: 'your_api_key',
user: 'user_identifier',
type: 'verification | onboarding',
endToEndId: 'end_to_end_id',
onFinish: () {
// Do something when the finish event is received
print('Finish event received');
},
onClose: () {
// Do something when the close event is received
print('Close event received');
},
onTimeout: () {
// Do something when the timeout event is received
print('Timeout event received');
},
onError: () {
// Do something when the return some error on rendering screen
print('Error received');
}
),
),
),
copied to clipboard
Make sure to replace captureKey, user and endToEndId with the actual values needed.
Support #
If you have any questions or encounter any issues, feel free to open an issue in this repository.

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.