Checkout controller from rememberPrimerCheckoutController()
Must be called inside PrimerCheckoutHost content or a PrimerCheckoutSheet slot.
Property
Property
Type
Description
methods
StateFlow<List<PrimerPaymentMethod>>
Available payment methods for the current session. Updates on checkout.refresh().
Method
Method
Description
select(method: PrimerPaymentMethod)
Selects a payment method to begin its payment flow (card form, redirect, native wallet, etc.)
PrimerPaymentMethod
data class PrimerPaymentMethod( val paymentMethodType: String, val paymentMethodName: String?, val surcharge: Surcharge?, val supportedPrimerSessionIntents: List<PrimerSessionIntent>, val paymentMethodManagerCategories: List<PrimerPaymentMethodManagerCategory>,)