Documentation Index Fetch the complete documentation index at: https://primer.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
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.
data class PrimerInputValidationError (
val errorId: String ,
val description: String ,
val diagnosticsId: String ,
val inputElementType: PrimerInputElementType
)
Properties
A unique error identifier.
A unique diagnostics id for the given error.
inputElementType
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-numberCard number is not valid. PrimerInputElementType.CARD_NUMBERinvalid-cvvCard CVV is not valid. PrimerInputElementType.CVVinvalid-expiry-dateCard expiry date is not valid. Valid expiry date format is MM/YYYY. PrimerInputElementType.EXPIRY_DATEinvalid-cardholder-nameCardholder name cannot be blank. PrimerInputElementType.CARDHOLDER_NAMEunsupported-card-typeUnsupported card type detected. PrimerInputElementType.CARD_NUMBER
Error ID Description Input Element Type invalid-card-numberCard number is not valid. PrimerInputElementType.CARD_NUMBERinvalid-expiry-dateCard expiry date is not valid. Valid expiry date format is MM/YYYY. PrimerInputElementType.EXPIRY_DATEinvalid-cardholder-nameCardholder name cannot be blank. PrimerInputElementType.CARDHOLDER_NAME
PrimerOtpData
Error ID Description Input Element Type invalid-otp-codeOTP code is not valid. PrimerInputElementType.OTP_CODE
PrimerPhoneNumberData
Error ID Description Input Element Type invalid-phone-numberPhone number is not valid. PrimerInputElementType.PHONE_NUMBER
PrimerRetailerData
Error ID Description Input Element Type invalid-retailerRetailer outlet ID can be only from list of retailers. PrimerInputElementType.RETAIL_OUTLET