SCPCardDetails


@interface SCPCardDetails : NSObject <SCPJSONDecodable>

Contains details about a user’s credit card.

  • The issuer of the card.

    Declaration

    Objective-C

    @property (readonly, nonatomic) SCPCardBrand brand;

    Swift

    var brand: CardBrand { get }
  • Two-letter ISO code representing the country of the card.

    Declaration

    Objective-C

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

    Swift

    var country: String? { get }
  • Two-digit number representing the card’s expiration month. 0 if the expiration month was missing.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSInteger expMonth;

    Swift

    var expMonth: Int { get }
  • Four-digit number representing the card’s expiration year. 0 if the expiration year was missing.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSInteger expYear;

    Swift

    var expYear: Int { get }
  • Card funding type. Ex: credit, debit, etc.

    Declaration

    Objective-C

    @property (readonly, nonatomic) SCPCardFundingType funding;

    Swift

    var funding: CardFundingType { get }
  • The last four digits of the card.

    Declaration

    Objective-C

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

    Swift

    var last4: String? { get }
  • Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example.

    Declaration

    Objective-C

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

    Swift

    var fingerprint: String? { get }
  • Unavailable

    You cannot directly instantiate this class.

    Declaration

    Objective-C

    - (nonnull instancetype)init;