OPPaymentMethod
@objc
public class OPPaymentMethod : NSObject, OPPaymentMethodProtocol
Represents a payment method containing all information needed to submit a basket via Olo’s Ordering API
-
The payment method id. This should be set to the token field when submitting a basket
Declaration
Swift
@objc public var id: String { get } -
The last four digits of the card
Declaration
Swift
@objc public var last4: String? { get } -
The issuer of the card (e.g. Visa, Mastercard, etc)
Declaration
Swift
@objc public var cardType: OPCardBrand { get } -
Two-digit number representing the card’s expiration month
Declaration
Swift
@objc public var expirationMonth: NSNumber? { get } -
Four-digit number representing the card’s expiration year
Declaration
Swift
@objc public var expirationYear: NSNumber? { get } -
ZIP or postal code
Declaration
Swift
@objc public var postalCode: String? { get } -
Whether or not this payment method was created via ApplePay
Declaration
Swift
@objc public var isApplePay: Bool { get } -
A string representation of this class
Declaration
Swift
@objc public override var description: String { get }
OPPaymentMethod Class Reference