flutter_identity_kyc

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

flutter identity kyc

flutter_identity_kyc #
Prembly 2.0 KYC Checkout flutter Wrapper
Getting Started #
Install package by adding flutter_identity_kyc to your pubspec.yaml file
KYC Widget #

FlutterIdentityKyc.showWidget(InputParamters(
merchantKey: "your merchant public key",
email: "your email address",
firstName: "your first name",
lastName: "your last name",
userRef:"unique user ref",
config:"Your configuration id from your widget configuration"
onCancel: (response) => {print(response)},
onVerified: (response) => {print(response)},
onError: (error) => print(error))),
)
copied to clipboard
Requirement #
Android #
Add the following permission to your android "AndroidManifest.xml" file
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.VIDEO_CAPTURE" />
copied to clipboard
IOS #
Add the following permission to your android "info.plist" file
<key>NSPhotoLibraryUsageDescription</key>
<string>App needs access to photo lib for profile images</string>
<key>NSCameraUsageDescription</key>
<string>To capture profile photo please grant camera access</string>
copied to clipboard
Sample implementation #
import 'package:flutter/material.dart';
import 'package:flutter_identity_kyc/flutter_identity_kyc.dart';
import 'package:permission_handler/permission_handler.dart';

void main() {
runApp(MaterialApp(home: MyApp()));
}

class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
requestPermissions();
}

Future<void> Function() requestPermissions = () async {
await Permission.camera.request().isGranted;

await Permission.microphone.request();
};

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: ElevatedButton(
style: null,
onPressed: () {
FlutterIdentityKyc.showWidget(InputParameters(
context: context,
merchantKey: "",
firstName: "",
lastName: "",
email: "",
userRef: "",
config:"",
onCancel: (response) {
print(response);
},
onVerified: (response) {
print(response);
},
onError: (error) => print(error)));
},
child: Text('Verify My Identity'),
))));
}
}
copied to clipboard

License

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

Files:

Customer Reviews

There are no reviews.