GooglePayConfiguration

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

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.