flutter_trusted_device_v2

This is the Official flutter package for Fazpass Trusted Device V2. If you want to use native sdk for android, you can find it here: https://github.com/fazpass-sdk/android-trusted-device-v2
For ios counterpart, you can find it here: https://github.com/fazpass-sdk/ios-trusted-device-v2
Visit official website for more information about the product and see documentation at online documentation for more technical details.

Minimum OS

Android 22, IOS 13.0

Getting Started

Before using our product, make sure to contact us first to get keypair of public key and private key. after you have each of them, put the public key into the assets folder.

Android

  1. Open android folder, then go to app/src/main/assets/ (if assets folder doesn't exist, create a new one)
  2. Put the public key in this folder

Ios

  1. Open your Ios project/workspace in Xcode
  2. Add new Data Set into your assets
  3. Reference it into your public key
  4. Name the asset

This package main purpose is to generate meta which you can use to communicate with Fazpass rest API. But before calling generate meta method, you have to initialize it first by calling this method:

Fazpass.instance.init("YOUR_PUBLIC_KEY_NAME");

Usage

String? meta;
try {
  meta = await Fazpass.instance.generateMeta();
} catch (e) {
  // handle error here
}