Components
SectionHeader
Method
EmptyState
PrimerPaymentMethods when the controller.methods list is empty.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Pre-built sub-components for customizing PrimerPaymentMethods slots
| Function | Description |
|---|---|
SectionHeader() | Default “Pay with” header styled with the current theme |
Method(method: PrimerPaymentMethod, onClick: () -> Unit) | Payment method item with icon, name, optional surcharge, and chevron |
EmptyState(modifier: Modifier = Modifier) | Message displayed when no payment methods are available |
@Composable
fun PaymentMethodsDefaults.SectionHeader()
@Composable
fun PaymentMethodsDefaults.Method(
method: PrimerPaymentMethod,
onClick: () -> Unit,
)
| Parameter | Type | Description |
|---|---|---|
method | PrimerPaymentMethod | Payment method data to display |
onClick | () -> Unit | Callback when tapped. Typically calls controller.select(method). |
@Composable
fun PaymentMethodsDefaults.EmptyState(
modifier: Modifier = Modifier,
)
PrimerPaymentMethods when the controller.methods list is empty.