SWIFT
PrimerValidationError
Representing a Primer Validation Error.
External input to our components will always undergo data validation to ensure accuracy and reliability.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
public enum PrimerValidationError: PrimerErrorProtocol, Encodable {
var errorId: String { get }
var errorDescription: String { get }
var errorUserInfo: [String: Any]? { get }
var diagnosticsId: String { get }
}
Hide Properties
| 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. |
| 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. |
| 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. |