ODWPaymentDataProtocol
@objc
public protocol ODWPaymentDataProtocol : NSObjectProtocol
Represents the payment data authorized by Apple Pay
-
Encrypted token string from Apple Pay that represents the selected payment method.
Declaration
Swift
@objc var token: String { get } -
The payment network used for this transaction
Important
APIs within Olo’s ordering ecosystem have specific values that need to be passed to API endpoints. UsePKPaymentNetwork.oloDescription()or theoloPaymentNetworkDescriptionproperty for thatDeclaration
Swift
@objc var paymentNetwork: PKPaymentNetwork? { get } -
The description of the payment network used for this transaction as required by Olo’s ordering ecosystem.
Important
If this has a value of"Unsupported"then attempting to process the payment with Olo’s ordering ecosystem will failDeclaration
Swift
@objc var oloPaymentNetworkDescription: String { get } -
The description of the card. This is commonly the payment network and the last four digits of the payment account number.
Declaration
Swift
@objc var cardDescription: String { get } -
The billing address associated with the transaction. The
ODWAddressProtocol.countryCodeandODWAddressProtocol.postalCodefields will always be set. Other fields will only be provided ifODWConfiguration.fullBillingAddressRequiredistrue.Declaration
Swift
@objc var billingAddress: ODWAddressProtocol { get } -
The email associated with the transaction or an empty string if unavailable. Will only be provided if
ODWConfiguration.emailRequiredistrue.Declaration
Swift
@objc var email: String { get } -
The last four digits of the payment account number, if they are returned by Apple, otherwise an empty string.
Declaration
Swift
@objc var lastFour: String { get } -
The phone number associated with the transaction or an empty string if unavailable. Will only be provided if
ODWConfiguration.phoneNumberRequiredistrue.Declaration
Swift
@objc var phoneNumber: String { get } -
The full name associated with the transaction or an empty string if unavailable. Will only be provided if
ODWConfiguration.fullNameRequiredistrue.Declaration
Swift
@objc var fullName: String { get } -
The full phonetic name associated with the transaction or an empty string if unavailable. Will only be provided if
ODWConfiguration.fullPhoneticNameRequiredistrue.Declaration
Swift
@objc var fullPhoneticName: String { get }