Steps 1 and 2 are part of your own UI. The potential data required is available as a model: com.smileidentity.models.IdInfo
Step 3 can be accomplished by calling either the synchronous or asynchronous API:
The API requests require the use of coroutines to avoid blocking the UI thread
val idInfo: IdInfo = ...
val authRequest = AuthenticationRequest(
jobType = JobType.EnhancedKyc,
enrollment = false,
userId = randomUserId(),
)
val authResponse = SmileID.api.authenticate(authRequest)
val enhancedKycRequest = EnhancedKycRequest(
partnerParams = authResponse.partnerParams,
signature = authResponse.signature,
timestamp = authResponse.timestamp,
country = idInfo.country,
idType = idInfo.idType,
idNumber = idInfo.idNumber ?: throw IllegalArgumentException("ID Number required"),
firstName = idInfo.firstName,
lastName = idInfo.lastName,
dob = idInfo.dob,
bankCode = idInfo.bankCode,
)
val response = SmileID.api.doEnhancedKyc(enhancedKycRequest)
Steps 1 and 2 are part of your own UI. The potential data required is available as a model: EnhancedKycRequest
Step 3 can be accomplished by calling the API (currently, only the Asynchronous endpoint is available. This requires you to include a callback_url in the request):
Usage
let request = EnhancedKycRequest(...)
SmileID.api.authenticate(...)
SmileID.api.doEnhancedKycAsync(...)
SmileID.api.pollJobStatus(...)
Steps 1 and 2 are part of your own UI. The potential data required is available as a model: FlutterEnhancedKycRequest
Step 3 can be accomplished by calling the API (currently only the Asynchronous API is available. This requires you to include a callback_url in your request):
Steps 1 and 2 are part of your own UI. The potential data required is available as a model: FlutterEnhancedKycRequest
Step 3 can be accomplished by calling the API (currently only the Asynchronous API is available. This requires you to include a callback_url in your request):
Note: Recommend wrapping this in a component that can be navigated to and out of view due to a known issue with views displaying dialogs particularly on failure and the dialog keeps showing,