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.
KOTLIN
data class PrimerInputValidationError( val errorId: String, val description: String, val diagnosticsId: String, val inputElementType: PrimerInputElementType)
Properties
Hide child attributes
String
required
A unique error identifier.
String
required
A error description.
String
required
A unique diagnostics id for the given error.
PrimerInputElementType
required
The type of input element associated with the validation error.
Exposed Error IDs
PrimerRawData Errors
PrimerCardData
Error ID
Description
Input Element Type
invalid-card-number
Card number is not valid.
PrimerInputElementType.CARD_NUMBER
invalid-cvv
Card CVV is not valid.
PrimerInputElementType.CVV
invalid-expiry-date
Card expiry date is not valid. Valid expiry date format is MM/YYYY.
PrimerInputElementType.EXPIRY_DATE
invalid-cardholder-name
Cardholder name cannot be blank.
PrimerInputElementType.CARDHOLDER_NAME
unsupported-card-type
Unsupported card type detected.
PrimerInputElementType.CARD_NUMBER
PrimerBancontactCardData
Error ID
Description
Input Element Type
invalid-card-number
Card number is not valid.
PrimerInputElementType.CARD_NUMBER
invalid-expiry-date
Card expiry date is not valid. Valid expiry date format is MM/YYYY.
PrimerInputElementType.EXPIRY_DATE
invalid-cardholder-name
Cardholder name cannot be blank.
PrimerInputElementType.CARDHOLDER_NAME
PrimerOtpData
Error ID
Description
Input Element Type
invalid-otp-code
OTP code is not valid.
PrimerInputElementType.OTP_CODE
PrimerPhoneNumberData
Error ID
Description
Input Element Type
invalid-phone-number
Phone number is not valid.
PrimerInputElementType.PHONE_NUMBER
PrimerRetailerData
Error ID
Description
Input Element Type
invalid-retailer
Retailer outlet ID can be only from list of retailers.