prembly_identity_kyc 0.0.2 copy "prembly_identity_kyc: ^0.0.2" to clipboard
prembly_identity_kyc: ^0.0.2 copied to clipboard

Platformweb

A Flutter SDK for Prembly Identity KYC. Seamlessly integrate identity verification into your iOS, Android, and Web applications.

Prembly Identity KYC Flutter SDK #

A powerful and seamless Flutter SDK for integrating Prembly's Identity KYC verification into your iOS, Android, and Web applications.

Features #

  • 🚀 Cross-Platform: Works natively on iOS, Android, and Flutter Web.
  • 🔒 Secure: Direct integration with Prembly's secure verification infrastructure.
  • Easy to Use: Launch the KYC flow with just a few lines of code.

Getting Started #

Add the package to your pubspec.yaml:

dependencies:
  prembly_identity_kyc: ^0.0.1

Platform Configuration #

Since the Identity KYC flow requires the user to take a selfie and scan ID documents, you must add camera permissions to your application.

iOS

Add the following keys to your ios/Runner/Info.plist file:

<key>NSCameraUsageDescription</key>
<string>This app requires access to the camera to verify your identity.</string>
<key>NSMicrophoneUsageDescription</key>
<string>This app requires access to the microphone for liveness checks.</string>

Android

Add the following permissions to your android/app/src/main/AndroidManifest.xml just above the <application> tag:

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

Note: Ensure your minSdkVersion in android/app/build.gradle is at least 19.

Web

No extra configuration is required. The browser will automatically request camera permissions from the user when the flow starts.

Usage #

Import the package and call PremblyIdentityKyc.verify passing the necessary options.

import 'package:prembly_identity_kyc/prembly_identity_kyc.dart';

void startVerification(BuildContext context) {
  PremblyIdentityKyc.verify(
    context: context,
    options: IdentityKycOptions(
      widgetKey: 'your_widget_key_here',
      widgetId: 'your_widget_id_here',
      firstName: 'John',
      lastName: 'Doe',
      email: 'john@example.com',
      phone: '+2348012345678',
      isTest: true,
      metadata: {
        'transaction_id': 'txn_123',
      },
      callback: (response) {
        print('Verification Result: $response');
      },
    ),
  );
}

Additional information #

For more information about Prembly and to get your API keys, visit prembly.com.

0
likes
130
points
211
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter SDK for Prembly Identity KYC. Seamlessly integrate identity verification into your iOS, Android, and Web applications.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, webview_flutter, webview_flutter_android, webview_flutter_web, webview_flutter_wkwebview

More

Packages that depend on prembly_identity_kyc