flutter_identity_kyc 0.1.3 copy "flutter_identity_kyc: ^0.1.3" to clipboard
flutter_identity_kyc: ^0.1.3 copied to clipboard

identitypass flutter kyc package.

flutter_identity_kyc #

IdentityPass KYC Checkout flutter Wrapper

Getting Started #

Install package by adding flutter_identity_kyc to your pubspec.yaml file

KYC Widget #

FlutterIdentityKyc(
    merchantKey: "your merchant public key",
    email: "your email address",
    firstName: "your first name",
    lastName: "your last name",
    showWidget: false, // this can be used to control widget visibility
    showButton: true, // this determines if the trigger button should show
    userRef:"unique user ref",
    onCancel: (response) => {print(response)},
    onVerified: (response) => {print(response)},
    onError: (error) => print(error)),
)

Requirement #

Android #

Add the following permission to your android "AndroidManifest.xml" file

  <uses-permission android:name="android.permission.CAMERA" />
  <uses-permission android:name="android.permission.RECORD_AUDIO" />
  <uses-permission android:name="android.permission.VIDEO_CAPTURE" />

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>

Sample implementation #

import 'package:flutter/material.dart';
import 'package:flutter_identity_kyc/flutter_identity_kyc.dart';

void main() {
  runApp(MyApp());
}

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: const Text('IdentityPass Checkout Test'),
          ),
          body: Center(
            child: FlutterIdentityKyc(
                merchantKey: "",
                email: ",
                firstName: "",
                lastName: "",
                userRef:"",
                isTest:false,
                showWidget: false,
                showButton: false, 
                onCancel: (response) => {print(response)},
                onVerified: (response) => {print(response)},
                onError: (error) => print(error)),
          )),
    );
  }
}
8
likes
0
pub points
66%
popularity

Publisher

unverified uploader

identitypass flutter kyc package.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_inappwebview

More

Packages that depend on flutter_identity_kyc