flutter_dojah_kyc 0.3.2 flutter_dojah_kyc: ^0.3.2 copied to clipboard
A webview implementation of dojah KYC Widget. Dojah helps businesses verify identity, beat fraud, stay compliant and onboard customers safely.
final Map<String,dynamic> config = {
debug: true,
otp: true, //for verification type
selfie: true //for verification type
};
final userData = {
"first_name": "John",
"last_name": "Doe",
"dob": "1990-04-16",
"residence_country": "Nigeria",
"email": "abc@gmail.com"
};
final configObj = {
"widget_id": "Your Widget ID"
};
final metaData = {
"user_id": "81828289191919193882",
};
final DojahKYC _dojahKYC = DojahKYC(
appId: appId,
publicKey: publicKey,
type: "custom",
userData: userData, //Optional
metaData: metaData, //Optional
config: configObj,
govData: govData, //Optional
referenceId: referenceId //Optional
);
_dojahKYC.open(context, onSuccess: (result) {
print('$result');
},
onClose: (close) => print('Widget Closed'),
onError: (err) {
print('error: $err');
});