rememberPaymentLauncher
fun rememberPaymentLauncher(publishableKey: String, stripeAccountId: String? = null, callback: PaymentLauncher.PaymentResultCallback): PaymentLauncher
Creates a PaymentLauncher that is remembered across compositions.
This must be called unconditionally, as part of the initialization path.
Parameters
publishableKey
The publishable key to use
stripeAccountId
Optional, the Connect account to associate with this request
callback
Called with the result of the payment operation
Creates a PaymentLauncher that is remembered across compositions.
This must be called unconditionally, as part of the initialization path.
The publishable key and Stripe account ID are read lazily from PaymentConfiguration.
Parameters
callback
Called with the result of the payment operation