Representing a Primer Validation Error. External input to our components will always undergo data validation to ensure accuracy and reliability.
12345
data class PrimerValidationError( val errorId: String, val description: String, val diagnosticsId: String)
kotlin
copy
Properties
errorId
StringRequireddescription
StringRequireddiagnosticsId
StringRequiredExposed Error IDs
Payment Component Errors
Klarna Component
Error ID | Description |
---|---|
session-not-created | Session needs to be created before payment category can be collected. |
invalid-payment-category | Payment category is invalid. |
payment-already-finalized | This payment was configured to finalize automatically. |
Banks Component
Error ID | Description |
---|---|
banks-not-loaded | Banks need to be loaded before bank id can be collected. |
invalid-bank-id | Bank id doesn't belong to any of the supported banks. |
Nol Pay Components
Error ID | Description |
---|---|
invalid-otp-code | OTP code is not valid. |
invalid-phone-number | Failed to parse phone number. |
invalid-card-number | Card number cannot be blank. |