When you’ve captured the user’s driver license or passport, as well as the user’s selfie, send the resulting DriverLicense
or Passport
objects, and the Selfie
object to the ID Verification service. For example:
idvService.submitDataForValidation(data: array_of_idCardSubclass_objects, onComplete: { (result) in
switch result {
case .success(let verifyStatus):
//Handle status here
case .failure(let error):
//Handle errors here
}
})