Configuration

data class Configuration @JvmOverloads constructor(val environment: SdkEnvironment, val gatewayParametersJson: String, val companyName: String, val companyCountryCode: String = "US", val currencyCode: String = "USD", val existingPaymentMethodRequired: Boolean = false, val emailRequired: Boolean = false, val phoneNumberRequired: Boolean = false, val fullNameRequired: Boolean = false, val fullBillingAddressRequired: Boolean = false, val allowedCardNetworks: List<CardType> = listOf( CardType.AmericanExpress, CardType.Discover, CardType.MasterCard, CardType.Visa )) : Parcelable

Configuration parameters required for setting up Google Pay

Constructors

Link copied to clipboard
constructor(environment: SdkEnvironment, gatewayParametersJson: String, companyName: String, companyCountryCode: String = "US", currencyCode: String = "USD", existingPaymentMethodRequired: Boolean = false, emailRequired: Boolean = false, phoneNumberRequired: Boolean = false, fullNameRequired: Boolean = false, fullBillingAddressRequired: Boolean = false, allowedCardNetworks: List<CardType> = listOf( CardType.AmericanExpress, CardType.Discover, CardType.MasterCard, CardType.Visa ))

Creates a new instance of this class

Properties

Link copied to clipboard

The list of card networks that are allowed for Google Pay transactions

Link copied to clipboard

The company country code. This should be a 2 character ISO code, and must be a country where Google Pay is supported.

Link copied to clipboard

The name of the company processing transactions.

Link copied to clipboard

The currency code to use for the Google Pay transaction. For more details, see Google's TransactionInfo.currencyCode documentation.

Link copied to clipboard
val emailRequired: Boolean = false

Whether Google Pay collects and returns an email address when processing the transaction.

Link copied to clipboard

The environment Google Pay will be run in

Link copied to clipboard

Determines how Google Pay checks if a customer is ready to use Google Pay. If true, Google Pay is only considered ready if the customer's Google Pay Wallet already has existing payment methods saved.

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 collected and returned.

Link copied to clipboard

Whether Google Pay collects and returns a name when processing transactions.

Link copied to clipboard

Parameters for the gateway, as a JSON-formatted string.

Link copied to clipboard

Whether Google Pay collects and returns a phone number when processing transactions.