Config

data class Config @JvmOverloads constructor(val environment: Environment, val companyName: String, val companyCountryCode: String = "US", val existingPaymentMethodRequired: Boolean = true, val emailRequired: Boolean = false, val phoneNumberRequired: Boolean = false, val addressFormat: Config.AddressFormat = AddressFormat.Min) : Parcelable

Google Pay Configuration class

Constructors

Link copied to clipboard
constructor(environment: Environment, companyName: String, companyCountryCode: String = "US", existingPaymentMethodRequired: Boolean = true, emailRequired: Boolean = false, phoneNumberRequired: Boolean = false, addressFormat: Config.AddressFormat = AddressFormat.Min)

Creates a new Config instance

Types

Link copied to clipboard

Billing address fields required to complete the transaction

Properties

Link copied to clipboard

The address format required to complete the transaction

Link copied to clipboard

The default company country code This can be overridden in GooglePayContext if there are store locations in multiple countries

Link copied to clipboard

The company name displayed on the Google Pay sheet This can be overridden in GooglePayContext if the displayed name needs to change based on the store location

Link copied to clipboard
val emailRequired: Boolean = false

Whether or not an email address is required to process the transaction. Default value is false

Link copied to clipboard

The environment Google Pay will be run in

Link copied to clipboard

If true, Google Pay is considered ready if the customer's Google Pay Wallet has existing payment methods. Default value is true

Link copied to clipboard

Whether or not a phone number is required to process the transaction. Default value is false