GooglePayConfig

data class GooglePayConfig @JvmOverloads constructor(val environment: GooglePayEnvironment, val companyName: String, val companyCountryCode: String = "US", val existingPaymentMethodRequired: Boolean = false, val emailRequired: Boolean = false, val phoneNumberRequired: Boolean = false, val fullNameRequired: Boolean = false, val fullBillingAddressRequired: Boolean = false, val currencyCode: CurrencyCode = CurrencyCode.USD) : Parcelable

Google Pay Configuration class

Constructors

Link copied to clipboard
constructor(environment: GooglePayEnvironment, companyName: String, companyCountryCode: String = "US", existingPaymentMethodRequired: Boolean = false, emailRequired: Boolean = false, phoneNumberRequired: Boolean = false, fullNameRequired: Boolean = false, fullBillingAddressRequired: Boolean = false, currencyCode: CurrencyCode = CurrencyCode.USD)

Creates a new GooglePayConfig instance

Properties

Link copied to clipboard

A two character country code for the vendor that will be processing transactions. Default value is "US"

Link copied to clipboard

The merchant/vendor display name. This will usually show up in the Google Pay sheet next to the total

Link copied to clipboard

The currency code to use for Google Pay transactions. Default value is CurrencyCode.USD

Link copied to clipboard
val emailRequired: Boolean = false

Whether Google Pay collects and returns an email address when processing transactions. Default value is false

Link copied to clipboard

The environment Google Pay will be run in

Link copied to clipboard

Whether an existing saved payment method is required for Google Pay to be considered ready. Default value is false

Link copied to clipboard

Whether Google Pay collects and returns a full billing address when processing transactions. If false, only postal code and country code will be provided. Default value is false

Link copied to clipboard

Whether Google Pay collects and returns a name when processing transactions. Default value is false

Link copied to clipboard

Whether Google Pay collects and returns a phone number when processing transactions. Default value is false