MeVerify Flutter Smart SDK
A powerful Flutter SDK for quickly onboarding users and performing KYC (Know Your Customer) and AML (Anti-Money Laundering) checks.
Features
- Passport Photograph Validation: Validate passport photographs
- Facial Likeness Validation: Validate facial likeness
Getting Started
Installation
Add the package to your application:
dependencies:
meverify: <latest_version>
API Key Setup
- Get your API Key from MeVerify by following these three easy steps.
- Use your API Key to authenticate your requests.
- Review the MeVerify API Documentation for detailed guides and instructions.
iOS Configuration
To enable camera and microphone access, add the following keys to ios/Runner/Info.plist
:
<key>NSCameraUsageDescription</key>
<string>Your usage description here</string>
<key>NSMicrophoneUsageDescription</key>
<string>Your usage description here</string>
Android Configuration
Update the minimum Android SDK version to 21 (or higher) in your android/app/build.gradle
file:
minSdkVersion 21
Usage
Passport Photograph Validation
To validate passport photographs, use the following code:
final response = PassportValidator(
apiKey: "Your-meverify-live-or-sandbox-secret-key",
isLightMode: false,
compareWith: "base64 URI image string",
);
Parameters
- apiKey: Obtain your API Secret key from your MeVerify Profile. This field is required.
- isLightMode: Set to
true
if you want to display the verification UI in lightmode (set to false by default). - compareWith: Optional. Only pass this param if you have a face
base64 URi string
you want to check against. If not set, only check if current face is a valid face.
Likeness Validation
To validate a face likeness, use the following code:
final response = LikenessValidator(
apiKey: "Your-meverify-live-or-sandbox-secret-key",
isLightMode: false,
oldImage: "base64 URI image string",
oldFaceData: "face data json",
);
Parameters
- apiKey: Obtain your API Secret key from your MeVerify Profile. This field is required.
- isLightMode: Set to
true
if you want to display the verification UI in lightmode (set to false by default). - oldImage: Optional. Only pass this param if you have a face
base64 URi string
you want to check against. - oldFaceData: Optional. Only pass this param if you have a face
JSON string
you want to check against.
You have to pass either oldImage
or oldFaceData
as the likeness will be matched against either one of these.
Additional Information
For more information, visit MeVerify to explore our solutions and SDKs.