SCPOfflineCardPresentDetails

Objective-C


@interface SCPOfflineCardPresentDetails : NSObject <NSCopying>

Swift

class OfflineCardPresentDetails : NSObject, NSCopying

Contains details about the payment method used to process a PaymentIntent offline.

  • The issuer of the card. In some cases, the brand may not be available until the PaymentIntent is forwarded to Stripe.

    Declaration

    Objective-C

    @property (nonatomic, readonly) SCPCardBrand brand;

    Swift

    var brand: CardBrand { 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 }
  • The last four digits of the card.

    Declaration

    Objective-C

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

    Swift

    var last4: String? { get }
  • How the card was read in this transaction.

    Declaration

    Objective-C

    @property (nonatomic, readonly) SCPReadMethod readMethod;

    Swift

    var readMethod: SCPReadMethod { get }
  • The cardholder name as read from the card, in ISO 7813 format. May include alphanumeric characters, special characters and first/last name separator (/). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments.

    Declaration

    Objective-C

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

    Swift

    var cardholderName: String? { get }
  • The receipt details read from the card during the offline transaction.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) SCPReceiptDetails *receiptDetails;

    Swift

    var receiptDetails: SCPReceiptDetails? { get }
  • Unavailable

    You cannot directly instantiate SCPOfflineCardPresentDetails.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Unavailable

    You cannot directly instantiate SCPOfflineCardPresentDetails.

    Declaration

    Objective-C

    + (nonnull instancetype)new;