Authenticate the ID or business registration card with the result of the Document API response.
To use the CLOVA eKYC Verify API, create an instance through Invoke url
and Secrect Key
.
val apiManager = NcpEkycApiManager {
idCardInvokeUrl = "Your invoke url"
idCardSecretKey = "Your secret key"
}
To perform Verify API, you need to create a NcpEkycApiManager
instance and call its verify()
function.
fun NcpEkycApiManager.verify(
documentResult: DocumentResult,
additionalHeader: Map<String, String>? = null,
additionalParameter: Map<String, String>? = null,
networkTimeoutMs: Long? = null
): VerifyResult
The following is a code example that uses the detection result:
val result = apiManager.verify(documentResult)
The VerifyResult
object returned from the verify()
function consists of the following information:
Items | Description |
---|---|
meta |
Meta.SUCCESS : successMeta.FAILED : connection failedMeta.SERVER_ERROR : when the response is not 200 when calling the server |
apiError |
ApiError : class that contains error informationApiError.code : error codeApiError.message : error message |
result |
VerifyInfo : Result of authenticity certificationIf you want to check the details, see here. |