Creation
Must be called inside
PrimerCheckoutHost content or a PrimerCheckoutSheet slot.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Controller interface for accessing and selecting available payment methods
@Composable
fun rememberPaymentMethodsController(
checkout: PrimerCheckoutController,
): PrimerPaymentMethodsController
| Parameter | Type | Description |
|---|---|---|
checkout | PrimerCheckoutController | Checkout controller from rememberPrimerCheckoutController() |
PrimerCheckoutHost content or a PrimerCheckoutSheet slot.| Property | Type | Description |
|---|---|---|
methods | StateFlow<List<PrimerPaymentMethod>> | Available payment methods for the current session. Updates on checkout.refresh(). |
| Method | Description |
|---|---|
select(method: PrimerPaymentMethod) | Selects a payment method to begin its payment flow (card form, redirect, native wallet, etc.) |
data class PrimerPaymentMethod(
val paymentMethodType: String,
val paymentMethodName: String?,
val surcharge: Surcharge?,
val supportedPrimerSessionIntents: List<PrimerSessionIntent>,
val paymentMethodManagerCategories: List<PrimerPaymentMethodManagerCategory>,
)
| Property | Type | Description |
|---|---|---|
paymentMethodType | String | Payment method identifier (e.g., "PAYMENT_CARD", "PAYPAL", "GOOGLE_PAY") |
paymentMethodName | String? | Human-readable display name |
surcharge | Surcharge? | Surcharge amount, or null if none |
supportedPrimerSessionIntents | List<PrimerSessionIntent> | Session intents supported by this payment method |
paymentMethodManagerCategories | List<PrimerPaymentMethodManagerCategory> | Manager categories for this payment method |
| Type | Description |
|---|---|
"PAYMENT_CARD" | Credit/debit card |
"PAYPAL" | PayPal |
"GOOGLE_PAY" | Google Pay |
"KLARNA" | Klarna |
"APPLE_PAY" | Apple Pay |
"IDEAL" | iDEAL |
"BANCONTACT" | Bancontact |
"SOFORT" | Sofort/Klarna Pay Now |