GooglePayConfiguration

data class GooglePayConfiguration @JvmOverloads constructor(val environment: PaymentSheet.GooglePayConfiguration.Environment, val countryCode: String, val currencyCode: String? = null, val amount: Long? = null, val label: String? = null, val buttonType: PaymentSheet.GooglePayConfiguration.ButtonType = ButtonType.Pay) : Parcelable

Parameters

environment

The Google Pay environment to use. See Google's documentation for more information.

countryCode

The two-letter ISO 3166 code of the country of your business, e.g. "US". See your account's country value here.

currencyCode

The three-letter ISO 4217 alphabetic currency code, e.g. "USD" or "EUR". Required in order to support Google Pay when processing a Setup Intent.

amount

An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided.

label

An optional label to display with the amount. Google Pay may or may not display this label depending on its own internal logic. Defaults to a generic label if none is provided.

buttonType

The Google Pay button type to use. Set to "Pay" by default. See Google's documentation for more information on button types.

Constructors

Link copied to clipboard
constructor(environment: PaymentSheet.GooglePayConfiguration.Environment, countryCode: String, currencyCode: String? = null, amount: Long? = null, label: String? = null, buttonType: PaymentSheet.GooglePayConfiguration.ButtonType = ButtonType.Pay)

Types

Link copied to clipboard

Google Pay button type options

Properties

Link copied to clipboard
val amount: Long? = null
Link copied to clipboard
Link copied to clipboard
val currencyCode: String? = null
Link copied to clipboard
val label: String? = null

Functions

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