OPCardBrand

@objc
public enum OPCardBrand : Int, CustomStringConvertible

An enum representing card brands supported by Olo Pay

Important

See the OPCardBrand.description property for how to use this enum when submitting a basket to the Olo Ordering API
  • Visa

    Declaration

    Swift

    case visa
  • American Express

    Declaration

    Swift

    case amex
  • MasterCard

    Declaration

    Swift

    case mastercard
  • Discover

    Declaration

    Swift

    case discover
  • Unsupported card type

    Declaration

    Swift

    case unsupported
  • Unknown card type

    Declaration

    Swift

    case unknown
  • A string representation of this enum. Use this as the cardtype when submitting a basket to the Olo Ordering API

    Important

    If the value is unknown the basket submission will fail

    Declaration

    Swift

    public var description: String { get }