FlowController

interface FlowController

A class that presents the individual steps of a payment sheet flow.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
fun interface ConfigCallback
Link copied to clipboard
sealed class Result

Functions

Link copied to clipboard
abstract fun configureWithPaymentIntent(paymentIntentClientSecret: String, configuration: PaymentSheet.Configuration? = null, callback: PaymentSheet.FlowController.ConfigCallback)

Configure the FlowController to process a PaymentIntent.

Link copied to clipboard
abstract fun configureWithSetupIntent(setupIntentClientSecret: String, configuration: PaymentSheet.Configuration? = null, callback: PaymentSheet.FlowController.ConfigCallback)

Configure the FlowController to process a SetupIntent.

Link copied to clipboard
abstract fun confirm()

Complete the payment or setup.

Link copied to clipboard

Retrieve information about the customer's desired payment option. You can use this to e.g. display the payment option in your UI.

Link copied to clipboard
abstract fun presentPaymentOptions()

Present a sheet where the customer chooses how to pay, either by selecting an existing payment method or adding a new one. Call this when your "Select a payment method" button is tapped.

Properties

Link copied to clipboard