verifyBack method

Future<VerificationResponse> verifyBack(
  1. String sessionId,
  2. File photo
)

Verify document back

Implementation

Future<VerificationResponse> verifyBack(
  String sessionId,
  File photo,
) async {
  try {
    final Map<String, dynamic> response = await _plugin.verifyDocumentBack(
      sessionId,
      {
        'photo': photo,
      },
    );
    return VerificationResponse.fromJson(response);
  } catch (e) {
    throw Exception('Failed to verify back: $e');
  }
}