Object providing pre-built composable functions for each part of the payment methods list.Documentation Index
Fetch the complete documentation index at: https://primer.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Components
| 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 |
SectionHeader
Method
| Parameter | Type | Description |
|---|---|---|
method | PrimerPaymentMethod | Payment method data to display |
onClick | () -> Unit | Callback when tapped. Typically calls controller.select(method). |
EmptyState
PrimerPaymentMethods when the controller.methods list is empty.