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) : 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.
Constructors
Link copied to clipboard
constructor(environment: PaymentSheet.GooglePayConfiguration.Environment, countryCode: String, currencyCode: String? = null, amount: Long? = null, label: String? = null)