digified_flutter_plugin 0.0.1 copy "digified_flutter_plugin: ^0.0.1" to clipboard
digified_flutter_plugin: ^0.0.1 copied to clipboard

Flutter plugin for Digified's Arabic eKYC and eContract SDKs - Proprietary digital identity verification and electronic contract solutions for Arabic markets.

example/lib/main.dart

import 'package:digified_flutter_plugin/digified_flutter_plugin.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Digified Demo'),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              ElevatedButton(
                onPressed: () async {
                  try {
                    final ekycSessionId = await DigifiedFlutterPlugin.presentEKYC(
                      apiKey: "client1-ekyc-license",
                      baseUrl: "https://ekyc-preprod.digified.dev",
                    );
                    print("eKYC completed. Session ID: $ekycSessionId");
                  } on PlatformException catch (e) {
                    print("eKYC failed: ${e.message}");
                  } catch (e) {
                    print("eKYC error: $e");
                  }
                },
                child: const Text('Launch eKYC'),
              ),
              const SizedBox(height: 20),
              ElevatedButton(
                onPressed: () async {
                  try {
                    await DigifiedFlutterPlugin.presentEContract(
                      apiKey: "your_api_key",
                      baseUrl: "your_base_url",
                      faceMatchingApiKey: "your_face_matching_api_key",
                      faceMatchingBaseUrl: "your_face_matching_base_url",
                      eKYCSessionID: "your_ekyc_session_id",
                      templateVersionID: "your_template_version_id",
                      variables: {
                        "key1": "value1",
                        "key2": "value2",
                      },
                    );
                    print("eContract completed successfully");
                  } on PlatformException catch (e) {
                    print("eContract failed: ${e.message}");
                  }
                },
                child: const Text('Launch eContract'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
0
points
498
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for Digified's Arabic eKYC and eContract SDKs - Proprietary digital identity verification and electronic contract solutions for Arabic markets.

Homepage
Repository
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on digified_flutter_plugin

Packages that implement digified_flutter_plugin