Composable that renders a card payment form with card details, optional billing address, and submit button. Each section is a slot parameter you can replace.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.
Signature
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
controller | PrimerCardFormController | Required | Controller managing form state, validation, and submission |
modifier | Modifier | Modifier | Modifier applied to the root container |
cardDetails | @Composable () -> Unit | CardFormDefaults.CardDetailsContent(controller) | Slot for card input fields (number, expiry, CVV, cardholder name) |
billingAddress | @Composable () -> Unit | CardFormDefaults.BillingAddressContent(controller) | Slot for billing address fields. Only rendered when required by session. |
submitButton | @Composable () -> Unit | CardFormDefaults.SubmitButton(controller) | Slot for the submit/pay button |