PaymentData class

Payment data for the digital wallet card (from Apple Pay or Google Pay) selected by the user when presenting the payment sheet

Constructors

PaymentData({required String token, required String lastFour, required CardType cardType, required String oloCardDescription, required String cardDetails, required String email, required String phoneNumber, required String fullName, required String fullPhoneticName, required Address billingAddress})
Create an instance of a payment data object
const

Properties

billingAddress Address
The billing address associated with the transaction. The country code and postal code fields will always be set
final
cardDetails String
The details about the card, if returned by the digital wallet, an empty string otherwise
final
cardType CardType
The issuer of the card
final
email String
The email address associated with the transaction, or an empty string if unavailable
final
fullName String
The full name associated with the transaction, or an empty string if unavailable
final
fullPhoneticName String
The full phonetic name associated with the transaction, or an empty string if unavailable (iOS Only)
final
hashCode int
The hash code for this object.
no setterinherited
lastFour String
The last four digits of the payment account number, if they are returned, otherwise an empty string
final
oloCardDescription String
The description of the card type used for this transaction as required by Olo's ordering ecosystem
final
phoneNumber String
The phone number associated with the transaction, or an empty string if unavailable
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
Encrypted token string from the digital wallet that represents the selected payment method
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited