rememberPaymentSheet
Creates a PaymentSheet that is remembered across compositions.
This must be called unconditionally, as part of the initialization path.
Parameters
paymentResultCallback
Called with the result of the payment after PaymentSheet is dismissed.
fun rememberPaymentSheet(createIntentCallback: CreateIntentCallback, paymentResultCallback: PaymentSheetResultCallback): PaymentSheet
Creates a PaymentSheet 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.
paymentResultCallback
Called with the result of the payment after PaymentSheet is dismissed.
fun rememberPaymentSheet(externalPaymentMethodConfirmHandler: ExternalPaymentMethodConfirmHandler, createIntentCallback: CreateIntentCallback, paymentResultCallback: PaymentSheetResultCallback): PaymentSheet