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, thecardPresentproperty is also populated.Declaration
Objective-C
@property (nonatomic, readonly) SCPPaymentMethodType type;Swift
var type: PaymentMethodType { get } - 
                  
                  
If this is a card payment method (ie
self.type == SCPPaymentMethodTypeCard), this contains additional information.Declaration
Objective-C
@property (nonatomic, readonly, nullable) SCPCardDetails *card;Swift
var card: SCPCardDetails? { 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 } - 
                  
                  
If this is an Paynow payment method (ie
self.type == SCPPaymentMethodTypePaynow), this contains additional information.Declaration
Objective-C
@property (nonatomic, readonly, nullable) SCPPaynowDetails *paynow;Swift
var paynow: SCPPaynowDetails? { get } - 
                  
                  
If this is a PayPay payment method (ie
self.type == SCPPaymentMethodTypePaypay), this contains additional information.Declaration
Objective-C
@property (nonatomic, readonly, nullable) SCPPaypayDetails *paypay;Swift
var paypay: SCPPaypayDetails? { get } - 
                  
                  
Unavailable
You cannot directly instantiate this class.
Declaration
Objective-C
- (nonnull instancetype)init;