Configuration

constructor(appearance: PaymentSheet.Appearance = PaymentSheet.Appearance(), address: AddressDetails? = null, allowedCountries: Set<String> = emptySet(), buttonTitle: String? = null, additionalFields: AddressLauncher.AdditionalFieldsConfiguration? = null, title: String? = null, autocompleteCountries: Set<String> = AUTOCOMPLETE_DEFAULT_COUNTRIES)


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> = AUTOCOMPLETE_DEFAULT_COUNTRIES)

Deprecated

Google Places API key is no longer required. This constructor will be removed in a future release.

Replace with

Configuration(appearance, address, allowedCountries, buttonTitle, additionalFields, title, autocompleteCountries)

Parameters

googlePlacesApiKey

Google Places API key. This is no longer required for address autocomplete.


constructor(appearance: PaymentSheet.Appearance, address: AddressDetails?, allowedCountries: Set<String>, buttonTitle: String?, additionalFields: AddressLauncher.AdditionalFieldsConfiguration?, title: String?, googlePlacesApiKey: String?)

Deprecated

Google Places API key is no longer required. This constructor will be removed in a future release.

Replace with

Configuration(appearance, address, allowedCountries, buttonTitle, additionalFields, title)