Skip to main content
Explore the Android Checkout Compose component hierarchy interactively. Click on any composable to see its parameters, available states, and copyable Kotlin code examples.

Key State Types

PrimerCheckoutState

StateDescription
LoadingCheckout is initializing
ReadyPayment methods available (contains clientSession)

PrimerCardFormController.State

PropertyTypeDescription
cardFieldsCardFieldsCard field values and validation
billingFieldsBillingFieldsBilling address field values
fieldErrorsList<SyncValidationError>?Validation errors (each with inputElementType, errorId, fieldId, errorResId)
dataCardFormDataAggregated form data
isLoadingBooleanWhether form is processing
isFormValidBooleanWhether all required fields are valid
networkSelectionNetworkSelectionCo-badged card network info

NetworkSelection

PropertyTypeDescription
selectedNetworkCardNetwork?Currently selected network
availableNetworksList<CardNetwork>Available networks for this card
isNetworkSelectableBooleanWhether user can choose network