SCPPaymentMethodDetails

@interface SCPPaymentMethodDetails : NSObject <SCPJSONDecodable>

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

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 (readonly, nonatomic) SCPPaymentMethodType type;

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var cardPresent: SCPCardPresentDetails? { get }
  • Unavailable

    You cannot directly instantiate this class.

    Declaration

    Objective-C

    - (nonnull instancetype)init;