PaymentData

data class PaymentData(val token: String, val description: String, val cardType: CardType, val oloCardTypeDescription: String, val cardDetails: String, val lastFour: String, val billingAddress: Address, val email: String = "", val fullName: 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: CardType, oloCardTypeDescription: String, cardDetails: String, lastFour: String, billingAddress: Address, email: String = "", fullName: String = "", phoneNumber: String = "")

Properties

Link copied to clipboard

The billing address associated with the payment method.

Link copied to clipboard

The details about the card.

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 (see Configuration.emailRequired)

Link copied to clipboard

The name associated with the transaction, if Google Pay was configured to require a full name (see Configuration.fullNameRequired)

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 description of the card type used for this transaction as required by Olo's ordering ecosystem.

Link copied to clipboard

The phone number associated with the transaction, if Google Pay was configured to require a phone number (see Configuration.phoneNumberRequired)

Link copied to clipboard

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