FlowController
interface FlowController
A class that presents the individual steps of a payment sheet flow.
Types
Link copied to clipboard
class Builder(resultCallback: PaymentSheetResultCallback, paymentOptionCallback: PaymentOptionCallback)
Builder utility to set optional callbacks for PaymentSheet.FlowController.
Link copied to clipboard
Functions
Link copied to clipboard
abstract fun configureWithIntentConfiguration(intentConfiguration: PaymentSheet.IntentConfiguration, configuration: PaymentSheet.Configuration? = null, callback: PaymentSheet.FlowController.ConfigCallback)
Configure the FlowController with an IntentConfiguration.
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
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
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.