Representing a Primer Input Validation Error. Whenever external input is required by our PrimerHeadlessUniversalCheckoutRawDataManager.setRawData, the data will be validated. Any validation errors will be associated with the corresponding PrimerInputElementType.

123456
data class PrimerInputValidationError(  val errorId: String,  val description: String,  val diagnosticsId: String,  val inputElementType: PrimerInputElementType)
kotlin
copy

Properties

errorId
StringRequired
A unique error identifier.
description
StringRequired
A error description.
diagnosticsId
StringRequired
A unique diagnostics id for the given error.
inputElementType
PrimerInputElementTypeRequired
The type of input element associated with the validation error.

Exposed Error IDs

PrimerRawData Errors

PrimerCardData

Error IDDescriptionInput Element Type
invalid-card-numberCard number is not valid.PrimerInputElementType.CARD_NUMBER
invalid-cvvCard cvv is not valid.PrimerInputElementType.CVV
invalid-expiry-dateCard expiry date is not valid. Valid expiry date format is MM/YYYY.PrimerInputElementType.EXPIRY_DATE
invalid-cardholder-nameCardholder name cannot be blank.PrimerInputElementType.CARDHOLDER_NAME
unsupported-card-typeUnsupported card type detected.PrimerInputElementType.CARD_NUMBER

PrimerBancontactCardData

Error IDDescriptionInput Element Type
invalid-card-numberCard number is not valid.PrimerInputElementType.CARD_NUMBER
invalid-expiry-dateCard expiry date is not valid. Valid expiry date format is MM/YYYY.PrimerInputElementType.EXPIRY_DATE
invalid-cardholder-nameCardholder name cannot be blank.PrimerInputElementType.CARDHOLDER_NAME

PrimerOtpData

Error IDDescriptionInput Element Type
invalid-otp-codeOTP code is not valid.PrimerInputElementType.OTP_CODE

PrimerPhoneNumberData

Error IDDescriptionInput Element Type
invalid-phone-numberPhone number is not valid.PrimerInputElementType.PHONE_NUMBER

PrimerRetailerData

Error IDDescriptionInput Element Type
invalid-retailerRetailer outlet ID can be only from list of retailers.PrimerInputElementType.RETAIL_OUTLET