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
public var id: String { get }
-
The last four digits of the card
Declaration
Swift
public var last4: String? { get }
-
The issuer of the card (e.g. Visa, Mastercard, etc)
Declaration
Swift
public var cardType: OPCardBrand { get }
-
Two-digit number representing the card’s expiration month
Declaration
Swift
public var expirationMonth: NSNumber? { get }
-
Four-digit number representing the card’s expiration year
Declaration
Swift
public var expirationYear: NSNumber? { get }
-
ZIP or postal code
Declaration
Swift
public var postalCode: String? { get }
-
Whether or not this payment method was created via ApplePay
Declaration
Swift
public var isApplePay: Bool { get }
-
Country from the card in the payment method
Declaration
Swift
public var country: String? { get }
-
A string representation of this class
Declaration
Swift
public override var description: String { get }