SCPSetupAttemptPaymentMethodDetails

Objective-C


@interface SCPSetupAttemptPaymentMethodDetails : NSObject <SCPJSONDecodable>

Swift

class SetupAttemptPaymentMethodDetails : NSObject, JSONDecodable

Details about a PaymentMethod at a specific time. ex: at time of transaction for a SetupAttempt.

Unlike an SCPPaymentMethod, the details object does not have a stripeId, and only exists as a sub-object of another Stripe object.

  • The type of the PaymentMethod. The corresponding, similarly named property contains additional information specific to the PaymentMethod type. e.g. if the type is SCPPaymentMethodTypeCardPresent, the cardPresent property is also populated.

    Declaration

    Objective-C

    @property (nonatomic, readonly) SCPPaymentMethodType type;

    Swift

    var type: PaymentMethodType { get }
  • If this is a card present payment method (ie self.type == SCPPaymentMethodTypeCardPresent), this contains additional information.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) SCPSetupAttemptCardPresentDetails *cardPresent;

    Swift

    var cardPresent: SCPSetupAttemptCardPresentDetails? { get }
  • If this is a card present payment method (ie self.type == SCPPaymentMethodTypeInteracPresent), this contains additional information.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) SCPSetupAttemptCardPresentDetails *interacPresent;

    Swift

    var interacPresent: SCPSetupAttemptCardPresentDetails? { get }
  • Unavailable

    You cannot directly instantiate this class.

    Declaration

    Objective-C

    - (nonnull instancetype)init;