SQRDCard

@interface SQRDCard : NSObject <NSCopying>

Represents the non-confidential details of a payment card.

  • The card brand (for example, Visa).

    Declaration

    Objective-C

    @property (readonly, nonatomic) SQRDCardBrand brand;

    Swift

    var brand: SQRDCardBrand { get }
  • The last four digits of the card number.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) NSString *lastFourDigits;

    Swift

    var lastFourDigits: String { get }
  • The month of the card’s expiration date, if available. This value is always between 1 and 12, inclusive.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSNumber *expirationMonth;

    Swift

    var expirationMonth: NSNumber? { get }
  • The four-digit year of the card’s expiration date, if available.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSNumber *expirationYear;

    Swift

    var expirationYear: NSNumber? { get }
  • The card’s unique ID, if any. This value is present only if this object represents a customer’s card on file.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSString *cardID;

    Swift

    var cardID: String? { get }
  • The cardholder’s full name.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSString *cardholderName;

    Swift

    var cardholderName: String? { get }
  • Returns a Boolean value that indicates whether the receiver and a given SQRDCard are equal.

    Declaration

    Objective-C

    - (BOOL)isEqual:(nullable SQRDCard *)object;

    Swift

    func isEqual(_ object: SQRDCard?) -> Bool
  • Returns an integer that can be used as a table address in a hash table structure.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger hash;

    Swift

    var hash: UInt { get }