Skip to main content
Primer Checkout Android SDK is currently in beta (v3.0.0-beta.4). The API is subject to change before the stable release.
Each CardFormDefaults field component handles its own formatting, validation, keyboard configuration, and error display. All fields accept controller: PrimerCardFormController and modifier: Modifier = Modifier.

Card detail fields

CardNumberField

Supported networks: Visa, Mastercard, Amex, Diners Club, Discover, JCB, UnionPay, Maestro, Elo, Mir, Hiper, Hipercard, Cartes Bancaires, Dankort, Eftpos, Other.

ExpiryField

CvvField

CardholderField

CardNetworkField

Billing address fields

All billing fields are rendered only when required by session configuration.

Validation behavior

  1. While typing — no error messages shown. isFormValid updates in real-time.
  2. On blur — field is validated and any error is added to state.fieldErrors.
  3. Error display — inline error text below the field using theme error color.
  4. Error clearing — errors clear when corrected and re-validated on next blur.