Config
data class Config @JvmOverloads constructor(environment: Environment, companyName: String, companyCountryCode: String, existingPaymentMethodRequired: Boolean, emailRequired: Boolean, phoneNumberRequired: Boolean, addressFormat: Config.AddressFormat)
Content copied to clipboard
Google Pay Configuration class
Constructors
Config
Link copied to clipboard
fun Config(environment: Environment, companyName: String, companyCountryCode: String = "US", existingPaymentMethodRequired: Boolean = true, emailRequired: Boolean = false, phoneNumberRequired: Boolean = false, addressFormat: Config.AddressFormat = AddressFormat.Min)
Content copied to clipboard
Creates a new Config instance
Types
Address Format
Link copied to clipboard
Billing address fields required to complete the transaction
Properties
addressFormat
Link copied to clipboard
companyCountryCode
Link copied to clipboard
The default company country code This can be overridden in GooglePayContext if there are store locations in multiple countries
companyName
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
emailRequired
Link copied to clipboard
environment
Link copied to clipboard
existingPaymentMethodRequired
Link copied to clipboard
phoneNumberRequired
Link copied to clipboard