GooglePaymentData

data class GooglePaymentData(val token: String, val description: String, val cardType: CardBrand, val cardDetails: String, val lastFour: String, val billingAddress: Address?, val email: String, val name: String, val phoneNumber: String) : Parcelable

Class to represent Google Pay payment data

Note: This class represents a merger of PaymentData and PaymentMethodData response objects from the Google Pay API

Constructors

Link copied to clipboard
constructor(token: String, description: String, cardType: CardBrand, cardDetails: String, lastFour: String, billingAddress: Address?, email: String, name: String, phoneNumber: String)

Properties

Link copied to clipboard

The billing address associated with the payment method, if Google Pay was configured to return address data.

Link copied to clipboard

The details about the card. This is commonly the last four digits of the payment account number.

Link copied to clipboard

The type of card used for this transaction.

Link copied to clipboard

User-facing message to describe the payment method that funds this transaction.

Link copied to clipboard

The email address associated with the transaction, if Google Pay was configured to require an email address.

Link copied to clipboard

The last four digits of the card number, if provided by Google, otherwise an empty string.

Link copied to clipboard

The name associated with the transaction

Link copied to clipboard

The phone number associated with the transaction

Link copied to clipboard

Encrypted token string from Google that represents the selected payment method.