STPSourceCardDetails
public class STPSourceCardDetails : NSObject, STPAPIResponseDecodable
This class provides typed access to the contents of an STPSource details
dictionary for card sources.
-
The last 4 digits of the card.
Declaration
Swift
@objc public private(set) var last4: String? { get }
-
The card’s expiration month. 1-indexed (i.e. 1 == January)
Declaration
Swift
@objc public private(set) var expMonth: UInt { get }
-
The card’s expiration year.
Declaration
Swift
@objc public private(set) var expYear: UInt { get }
-
The issuer of the card.
Declaration
Swift
@objc public private(set) var brand: STPCardBrand { get }
-
The funding source for the card (credit, debit, prepaid, or other)
Declaration
Swift
@objc public private(set) var funding: STPCardFundingType { get }
-
Two-letter ISO code representing the issuing country of the card.
Declaration
Swift
@objc public private(set) var country: String? { get }
-
Whether 3D Secure is supported or required by the card.
Declaration
Swift
@objc public private(set) var threeDSecure: STPSourceCard3DSecureStatus { get }
-
True if this card was created through Apple Pay, false otherwise.
Declaration
Swift
@objc public private(set) var isApplePayCard: Bool { get }
-
Declaration
Swift
@objc public private(set) var allResponseFields: [AnyHashable : Any] { get }
-
Declaration
Swift
public class func decodedObject(fromAPIResponse response: [AnyHashable : Any]?) -> `Self`?