SCPCharge
Objective-C
@interface SCPCharge : NSObject <SCPJSONDecodable>
Swift
class SCPCharge : NSObject, JSONDecodable
An object representing a Stripe charge.
-
The amount of the charge.
Declaration
Objective-C
@property (nonatomic, readonly) NSUInteger amount;
Swift
var amount: UInt { get }
-
The currency of the charge.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull currency;
Swift
var currency: String { get }
-
The status of the charge.
Declaration
Objective-C
@property (nonatomic, readonly) SCPChargeStatus status;
Swift
var status: ChargeStatus { get }
-
The payment method details associated with the charge.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) SCPPaymentMethodDetails *paymentMethodDetails;
Swift
var paymentMethodDetails: SCPPaymentMethodDetails? { get }
-
A string describing the charge, displayed in the Stripe dashboard and in email receipts.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *stripeDescription;
Swift
var stripeDescription: String? { get }
-
Metadata associated with the charge.
Declaration
Objective-C
@property (nonatomic, readonly) NSDictionary *_Nonnull metadata;
Swift
var metadata: [AnyHashable : Any] { get }
-
The unique identifier for the charge.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull stripeId;
Swift
var stripeId: String { get }
-
Unavailable
You cannot directly instantiate this class.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Unavailable
You cannot directly instantiate this class.
Declaration
Objective-C
+ (nonnull instancetype)new;