Primer Checkout Android SDK is currently in beta (v3.0.0-beta.2).
The API is subject to change before the stable release.
Error class delivered through PrimerCheckoutEvent.Failure. Contains error details and a diagnostics ID for Primer support.
Definition
class PrimerError {
val errorId: String
val description: String
val errorCode: String?
val diagnosticsId: String
val recoverySuggestion: String?
}
Properties
| Property | Type | Description |
|---|
errorId | String | Unique error identifier for programmatic handling |
description | String | Human-readable error message (suitable for logging) |
errorCode | String? | Specific failure reason (e.g., "card_declined", "insufficient_funds"). null for non-payment errors. |
diagnosticsId | String | Unique diagnostics ID. Provide to Primer support when investigating issues. |
recoverySuggestion | String? | Suggested recovery action. null when no recovery applies. |