SCPPaymentMethodDetails
Objective-C
@interface SCPPaymentMethodDetails : NSObject <SCPJSONDecodable>
Swift
class PaymentMethodDetails : NSObject, JSONDecodable
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
, thecardPresent
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) SCPCardPresentDetails *cardPresent;
Swift
var cardPresent: SCPCardPresentDetails? { get }
-
If this is an Interac present payment method (ie
self.type == SCPPaymentMethodTypeInteracPresent
), this contains additional information.Declaration
Objective-C
@property (nonatomic, readonly, nullable) SCPCardPresentDetails *interacPresent;
Swift
var interacPresent: SCPCardPresentDetails? { get }
-
If this is a Wechat pay payment method (ie
self.type == SCPPaymentMethodTypeWechatPay
), this contains additional information.Declaration
Objective-C
@property (nonatomic, readonly, nullable) SCPWechatPayDetails *wechatPay;
Swift
var wechatPay: SCPWechatPayDetails? { get }
-
If this is an Affirm payment method (ie
self.type == SCPPaymentMethodTypeAffirm
), this contains additional information.Declaration
Objective-C
@property (nonatomic, readonly, nullable) SCPAffirmDetails *affirm;
Swift
var affirm: SCPAffirmDetails? { get }
-
Unavailable
You cannot directly instantiate this class.
Declaration
Objective-C
- (nonnull instancetype)init;