STPSourceCardDetails

@interface STPSourceCardDetails : NSObject <STPAPIResponseDecodable>

This class provides typed access to the contents of an STPSource details dictionary for card sources.

  • Unavailable

    You cannot directly instantiate an STPSourceCardDetails. You should only use one that is part of an existing STPSource object.

    You cannot directly instantiate an STPSourceCardDetails. You should only use one that is part of an existing STPSource object.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • The last 4 digits of the card.

    Declaration

    Objective-C

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

    Swift

    var last4: String? { get }
  • The card’s expiration month. 1-indexed (i.e. 1 == January)

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger expMonth;

    Swift

    var expMonth: UInt { get }
  • The card’s expiration year.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger expYear;

    Swift

    var expYear: UInt { get }
  • The issuer of the card.

    Declaration

    Objective-C

    @property (readonly, nonatomic) STPCardBrand brand;

    Swift

    var brand: STPCardBrand { get }
  • The funding source for the card (credit, debit, prepaid, or other)

    Declaration

    Objective-C

    @property (readonly, nonatomic) STPCardFundingType funding;

    Swift

    var funding: STPCardFundingType { get }
  • Two-letter ISO code representing the issuing country of the card.

    Declaration

    Objective-C

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

    Swift

    var country: String? { get }
  • Whether 3D Secure is supported or required by the card.

    Declaration

    Objective-C

    @property (readonly, nonatomic) STPSourceCard3DSecureStatus threeDSecure;

    Swift

    var threeDSecure: STPSourceCard3DSecureStatus { get }
  • True if this card was created through Apple Pay, false otherwise.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL isApplePayCard;

    Swift

    var isApplePayCard: Bool { get }