SCPCardPresentDetails
Objective-C
@interface SCPCardPresentDetails : NSObject <SCPJSONDecodable>
Swift
class CardPresentDetails : NSObject, JSONDecodable
An object representing details from a transaction using a card_present payment method.
-
The last 4 digits of the card.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull last4;
Swift
var last4: String { get }
-
The card’s expiration month. 1-indexed (i.e. 1 == January)
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger expMonth;
Swift
var expMonth: Int { get }
-
The card’s expiration year.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger expYear;
Swift
var expYear: Int { get }
-
The cardholder name as read from the card, in ISO 7813 format. May include alphanumeric characters, special characters and first/last name separator (/).
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *cardholderName;
Swift
var cardholderName: String? { get }
-
The card’s funding type.
Declaration
Objective-C
@property (nonatomic, readonly) SCPCardFundingType funding;
Swift
var funding: CardFundingType { get }
-
The issuing brand of the card.
Declaration
Objective-C
@property (nonatomic, readonly) SCPCardBrand brand;
Swift
var brand: CardBrand { get }
-
ID of a
card
PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate acard
PaymentMethod.Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *generatedCard;
Swift
var generatedCard: String? { get }
-
Receipt information for the card present transaction. Only present for EMV transactions.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) SCPReceiptDetails *receipt;
Swift
var receipt: SCPReceiptDetails? { get }
-
(Only applicable to EMV payments) The authorization data from the card issuer.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *emvAuthData;
Swift
var emvAuthData: String? { get }
-
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you’ve collected.
Only available for interac_present payments.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *country;
Swift
var country: String? { get }
-
EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
Only available for interac_present payments.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSArray<NSString *> *preferredLocales;
Swift
var preferredLocales: [String]? { get }
-
Contains information about card networks that can be used to process the payment.
Only available after collectPaymentMethod when using updatePaymentIntent on the CollectConfiguration.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) SCPNetworks *networks;
Swift
@NSCopying var networks: SCPNetworks? { get }
-
Identifies which network this charge was processed on.
Contains SCPCardBrand represented as a nullable NSNumber.
Only available after confirming the PaymentIntent.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSNumber *network;
Swift
@NSCopying var network: NSNumber? { get }
-
Whether this payment method is eligible for incremental authorizations.
Note: This is only known if the PaymentIntent was confirmed.
Declaration
Objective-C
@property (nonatomic, readonly) SCPIncrementalAuthorizationStatus incrementalAuthorizationStatus;
Swift
var incrementalAuthorizationStatus: SCPIncrementalAuthorizationStatus { get }
-
How the card was read in this transaction.
Declaration
Objective-C
@property (nonatomic, readonly) SCPReadMethod readMethod;
Swift
var readMethod: SCPReadMethod { get }
-
ID of the location that this transaction’s reader is assigned to.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *location;
Swift
var location: String? { get }
-
ID of the reader this transaction was made on.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *reader;
Swift
var reader: String? { get }
-
Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *iin;
Swift
var iin: String? { get }
-
The name of the card’s issuing bank. (For internal use only and not typically available in standard API requests.)
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *issuer;
Swift
var issuer: String? { get }
-
A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *stripeDescription;
Swift
var stripeDescription: String? { get }
-
Unavailable
You cannot directly instantiate this class.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Unavailable
You cannot directly instantiate this class.
Declaration
Objective-C
+ (nonnull instancetype)new;