CustomerSessionProvider

CustomerSessionProvider provides the necessary functions

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Creates an IntentConfiguration that is used when configuring the intent used when displaying saved payment methods to a customer.

Link copied to clipboard

Provides the CustomerSessionClientSecret that will be claimed and used to access a customer's saved payment methods.

Link copied to clipboard
abstract suspend fun provideSetupIntentClientSecret(customerId: String): Result<String>

Provides the SetupIntent client secret that is used when attaching a payment method to a customer.