QoreIDParam

The QoreIDParam object is how you provide data relevant to the SDK.

let param:QoreIDParam = QoreIDParam()
  .clientId(clientId: key)
  .customerReference(id)
  .inputData(inputData)
  // call other methods as described below...
  .build()

Methods

clientId(key) (Required)

Set your QoreID client ID (as obtained from your QoreID portal).

ArgumentsDescriptionRequired?
key: StringYour QoreID app keyRequired

customerReference(id) (Required)

Provide a value to be used as an identifier for a customer who is the subject of this verification.

ArgumentsDescription
id: StringString that identifies a customer in your organization.

collection(productCode)

Call this method to indicate that the SDK should be launched in Collection mode. This is required to carry out a verification in Collection mode.

ArgumentsDescription
productCode: StringValue representing a QoreID service product. See the list of options here - Product Codes

workflow(workflowId)

Call this method to indicate that the SDK should launch in Workflow mode. This is required to carry out a Workflow verification

ArgumentsDescription
workflowId: StringID of a workflow you have created on your QoreID Portal dashboard

inputData(data) (Optional)

Use this to provide input data about the target of the verification. If not provided, the end-user will be asked to provide the data in a form, where needed.

ArgumentsDescription
data: InputDataSee the InputData section below.

inputData(ApplicantData, AddressData, IdentityData)

Alternative to calling QoreIDParams.inputData(InputData)

ArgumentsDescription
applicant: ApplicantDataProvide details about an individual Applicant.Optional
address: AddressDataProvide details for an address verification.Optional
identity: IdentityDataProvide details for an identity verificationOptional

ocrAcceptedDocuments(values)

Required for verifications that involve OCR ID document scan.

ArgumentsDescription
values: List<String>See more about OCR - Accepted Documents here.

InputData

Used to provide input data for the SDK verification session.

let inputData = InputData(applicant: applicant, address: addressData)

ApplicantData

Used to provide data about an individual who is the subject of a verification.

private let applicant = ApplicantData(firstname: firstname,
                                      lastname:lastname,
                                      phone: phone,
                                      email: email)

AddressData

Used this to provide address data for Verifind verifications.

   private let addressData = AddressData(address: address, 
                                         city: city, 
                                         lga: lga,
                                         state: state,
  // ... Other params depending on the subject country
)