callScanovate static method
Call the scanovate API.
@param verification verification field. @param documentType the documentType field. @param documentType the productId field. @param documentType the projectName field. @param documentType the apiKey field. @param documentType the urlSdk field. @param documentType the documentNumber field. @param documentType the codeFinger field. @param documentType the userName field. @param documentType the password field. @returns The response in json string format.
Implementation
static Future<String?> callScanovate(
bool verification,
String documentType,
int productId,
String projectName,
String apiKey,
String urlSdk,
String documentNumber,
String userName,
String password, {
String riskId = '1',
}) async {
final String? response = await _channel.invokeMethod('callScanovate', {
"data": {
'documentType': documentType,
'productId': productId,
'projectName': projectName,
'apiKey': apiKey,
'urlSdk': urlSdk,
'documentNumber': documentNumber,
'verification': verification,
'userName': userName,
'password': password,
'other': riskId,
}
});
return response;
}