CustomerSheet

A drop-in class that presents a bottom sheet to manage a customer's saved payment methods.

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Configuration for CustomerSheet

Link copied to clipboard

A CustomerSessionClientSecret contains the parameters necessary for claiming a customer session. This will be used to securely access a customer's saved payment methods.

Link copied to clipboard

CustomerSessionProvider provides the necessary functions

Link copied to clipboard

IntentConfiguration contains the details necessary for configuring and creating an intent to attach payment methods with.

Functions

Link copied to clipboard

Configures CustomerSheet with to use a given CustomerSheet.Configuration instance. Can be called multiple times to re-configure CustomerSheet.

Link copied to clipboard
fun present()

Presents a sheet to manage the customer. Results of the sheet are delivered through the callback passed in CustomerSheet.create.

Link copied to clipboard

Clears the customer session state. This is only needed in a single activity workflow. You should call this when leaving the customer management workflow in your single activity app. Otherwise, if your app is using a multi-activity workflow, then CustomerSheet will work out of the box and clearing manually is not required.

Link copied to clipboard

Retrieves the customer's saved payment option selection or null if the customer does not have a persisted payment option selection.