Composable that wraps your custom checkout layout withDocumentation Index
Fetch the complete documentation index at: https://primer.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
PrimerTheme and required CompositionLocal providers. Renders SDK components inline rather than in a modal bottom sheet. Overlay sheets for 3DS and redirect flows are handled automatically.
Signature
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
checkout | PrimerCheckoutController | Required | Checkout controller providing session state to child components |
modifier | Modifier | Modifier | Modifier applied to the host container |
onEvent | (PrimerCheckoutEvent) -> Unit | {} | Payment outcome events. See PrimerCheckoutEvent |
theme | PrimerTheme | PrimerTheme() | Design tokens applied to all SDK components within the host |
content | @Composable () -> Unit | Required | Your custom layout containing SDK components (trailing lambda) |
What it provides
- PrimerTheme — applies design tokens so child components inherit your styling
- CompositionLocal providers — injects checkout context so
remember*Controller()functions work - Overlay management — renders overlays for 3DS challenges and redirect flows automatically
PrimerCheckoutHost, SDK components like PrimerCardForm and PrimerPaymentMethods will not function.