GooglePayOptions

data class GooglePayOptions(val allowedCardAuthMethods: List<String>? = null, val merchantName: String? = null, val allowPrepaidCards: Boolean? = null, val allowCreditCards: Boolean? = null, val assuranceDetailsRequired: Boolean? = null, val billingAddressRequired: Boolean? = null, val billingAddressParameters: BillingAddressParameters? = null, val transactionId: String? = null, val totalPriceLabel: String? = null, val checkoutOption: String? = null, val emailRequired: Boolean? = null, val shippingAddressRequired: Boolean? = null, val shippingAddressParameters: ShippingAddressParameters? = null, val allowedCardNetworks: List<String> = googlePaySupportedNetworks(), val skipReadinessCheck: Boolean? = false) : Parcelable

Constructors

Link copied to clipboard
constructor(allowedCardAuthMethods: List<String>? = null, merchantName: String? = null, allowPrepaidCards: Boolean? = null, allowCreditCards: Boolean? = null, assuranceDetailsRequired: Boolean? = null, billingAddressRequired: Boolean? = null, billingAddressParameters: BillingAddressParameters? = null, transactionId: String? = null, totalPriceLabel: String? = null, checkoutOption: String? = null, emailRequired: Boolean? = null, shippingAddressRequired: Boolean? = null, shippingAddressParameters: ShippingAddressParameters? = null, allowedCardNetworks: List<String> = googlePaySupportedNetworks(), skipReadinessCheck: Boolean? = false)

Properties

Link copied to clipboard

Set to false if you don't support credit cards. Default: The credit card class is supported for the card networks specified.

Link copied to clipboard

The Google Pay API may return cards on file on Google.com (PAN_ONLY) and/or a device token on an Android device authenticated with a 3-D Secure cryptogram (CRYPTOGRAM_3DS). Default: Both authentication methods are allowed.

Link copied to clipboard

The card networks that your application accepts

Link copied to clipboard

Set to false if you don't support prepaid cards. Default: The prepaid card class is supported for the card networks specified.

Link copied to clipboard

Set to true to request assuranceDetails. This object provides information about the validation performed on the returned payment data.

Link copied to clipboard

The expected fields returned if billingAddressRequired is set to true.

Link copied to clipboard

Set to true if you require a billing address. A billing address should only be requested if it's required to process the transaction.

Link copied to clipboard
val checkoutOption: String? = null

Affects the submit button text displayed in the Google Pay payment sheet. DEFAULT: Standard text applies for the given totalPriceStatus (default). COMPLETE_IMMEDIATE_PURCHASE: The selected payment method is charged immediately after the payer confirms their selections.

Link copied to clipboard
val emailRequired: Boolean? = null

Set to true to request an email address.

Link copied to clipboard
val merchantName: String? = null

Merchant name encoded as UTF-8.

Link copied to clipboard

If shippingAddressParameters is set to true, specify shipping address restrictions.

Link copied to clipboard

Set to true to request a full shipping address. Note: The shipping address is currently provided and saved when merchant creating a payment intent, so this won't be useful until we support confirming a payment intent with shipping address.

Link copied to clipboard

Setting skipReadinessCheck to true will skip the IsReadyToPay check before invoking Google Pay.

Link copied to clipboard
val totalPriceLabel: String? = null

Provide a business name for the label field. Use the same business name people will see when they look for the charge on their bank or credit card statement. For example, "COMPANY, INC."

Link copied to clipboard
val transactionId: String? = null

Correlation ID to refer to this transaction.

Functions

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