Config

data class Config @JvmOverloads constructor(val environment: GooglePayEnvironment, val merchantCountryCode: String, val merchantName: String, var isEmailRequired: Boolean = false, var billingAddressConfig: GooglePayLauncher.BillingAddressConfig = BillingAddressConfig(), var existingPaymentMethodRequired: Boolean = true, var allowCreditCards: Boolean = true) : Parcelable

Constructors

Link copied to clipboard
constructor(environment: GooglePayEnvironment, merchantCountryCode: String, merchantName: String, isEmailRequired: Boolean = false, billingAddressConfig: GooglePayLauncher.BillingAddressConfig = BillingAddressConfig(), existingPaymentMethodRequired: Boolean = true, allowCreditCards: Boolean = true)

Properties

Link copied to clipboard

Set to false if you don't support credit cards.

Link copied to clipboard

Billing address collection configuration.

Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

Flag to indicate whether Google Pay collect the customer's email address.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)