Development Guide
This page shows the development guide of the OkayID NFC
Last updated
This page shows the development guide of the OkayID NFC
Last updated
Retrieve the MRZKey
by passing passport number, date of birth, and expiry date
License key is needed to trigger the process. Start the process by calling readPassport
on PassportReader
. After process finished successfully or with an error, the callback method will be inovked with the results
Parameter | Type | Required format |
---|---|---|
*Note: if expiry date is 21 SEPT 2022, the valid format to pass is 220921
result callback has 3 params as follow:
After the successful processing, you will be able to retrieve the following info:
Params | Possible value |
---|---|
Parameter | Type |
---|---|
Parameter | Type | Default | Required format |
---|---|---|---|
Parameter | Description |
---|---|
Parameter | Type | Default | Required |
---|---|---|---|
Parameter | Type | Default |
---|---|---|
passportNumber
String
dateOfBirth
String
yyMMdd
dateOfExpiry
String
yyMMdd
success
will be true if the process finish successfully ,otherwise false
passport
if its successful,the passport object will contains the info described in the following table. Otherwise, passport will be null
exception
if its successful, exception will be null otherwise, it contains the exception that occurred during the process
documentType
String
documentNumber
String
personalNumber
String
name
String
gender
String
nationality
String
dateOfBirth
String
documentExpiryDate
String
faceImgPath
String
passportNumber
String
nil
dateOfBirth
String
nil
yyMMdd
dateOfExpiry
String
nil
yyMMdd
DG1
MRZ Data
DG2
Image
DG7, DG11, DG12, DG14, DG15, COM and SOD
-
licenseKey
String
nil
compulsory
mrzKey
String
nil
compulsory
tags
[DataGroupId]
[]
optional
skipSecureElements
Bool
true
optional
skipCA
Bool
false
optional
skipPACE
Bool
false
optional
customDisplayMessage
(NFCViewDisplayMessage) -> String?
nil
optional
documentType
String
""
documentNumber
String
""
personalNumber
String
""
name
String
""
gender
String
""
nationality
String
""
dateOfBirth
String
""
documentExpiryDate
String
""
faceImgPath
URL
nil