SCPCardDetails

Objective-C


@interface SCPCardDetails : NSObject <SCPJSONDecodable>

Swift

class CardDetails : NSObject, JSONDecodable

Contains details about a user’s credit card.

  • The issuer of the card.

    Declaration

    Objective-C

    @property (nonatomic, readonly) SCPCardBrand brand;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, readonly, 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 (nonatomic, readonly) 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 (nonatomic, readonly) NSInteger expYear;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, readonly) SCPCardFundingType funding;

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var last4: String? { get }
  • Unavailable

    You cannot directly instantiate this class.

    Declaration

    Objective-C

    - (nonnull instancetype)init;