rememberPaymentSheetFlowController

Creates a PaymentSheet.FlowController that is remembered across compositions.

This must be called unconditionally, as part of the initialization path.

Parameters

paymentOptionCallback

Called when the customer's desired payment method changes.

paymentResultCallback

Called when a PaymentSheetResult is available.


Creates a PaymentSheet.FlowController that is remembered across compositions. Use this method when you intend to create the com.stripe.android.model.PaymentIntent or com.stripe.android.model.SetupIntent on your server.

This must be called unconditionally, as part of the initialization path.

Parameters

createIntentCallback

Called when the customer confirms the payment or setup.

paymentOptionCallback

Called when the customer's desired payment method changes.

paymentResultCallback

Called when a PaymentSheetResult is available.