Configuration

data class Configuration @JvmOverloads constructor(val appearance: PaymentSheet.Appearance = PaymentSheet.Appearance(), val address: AddressDetails? = null, val allowedCountries: Set<String> = emptySet(), val buttonTitle: String? = null, val additionalFields: AddressLauncher.AdditionalFieldsConfiguration? = null, val title: String? = null, val googlePlacesApiKey: String? = null, val autocompleteCountries: Set<String> = setOf( "AU", "BE", "BR", "CA", "CH", "DE", "ES", "FR", "GB", "IE", "IT", "MX", "NO", "NL", "PL", "RU", "SE", "TR", "US", "ZA" )) : Parcelable

Configuration for AddressLauncher

Constructors

Link copied to clipboard
constructor(appearance: PaymentSheet.Appearance = PaymentSheet.Appearance(), address: AddressDetails? = null, allowedCountries: Set<String> = emptySet(), buttonTitle: String? = null, additionalFields: AddressLauncher.AdditionalFieldsConfiguration? = null, title: String? = null, googlePlacesApiKey: String? = null, autocompleteCountries: Set<String> = setOf( "AU", "BE", "BR", "CA", "CH", "DE", "ES", "FR", "GB", "IE", "IT", "MX", "NO", "NL", "PL", "RU", "SE", "TR", "US", "ZA" ))

Types

Link copied to clipboard
class Builder

Configuration builder for cleaner object creation from Java.

Properties

Link copied to clipboard

Configuration for fields to collect in addition to the physical shipping address

Link copied to clipboard
val address: AddressDetails? = null

The values to pre-populate shipping address fields with.

Link copied to clipboard

A list of two-letter country codes representing countries the customers can select. If the list is empty (the default), we display all countries.

Link copied to clipboard

Configuration for the look and feel of the UI

Link copied to clipboard

A list of two-letter country codes that support autocomplete. Defaults to a list of countries that Stripe has audited to ensure a good autocomplete experience.

Link copied to clipboard
val buttonTitle: String? = null

The title of the primary button displayed at the bottom of the screen. Defaults to "Save address".

Link copied to clipboard

Google Places api key used to provide autocomplete suggestions When null, autocomplete is disabled.

Link copied to clipboard
val title: String? = null

Configuration for the title displayed at the top of the screen. Defaults to "Address"

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)