SCPCharge

@interface SCPCharge : NSObject <SCPJSONDecodable>

An object representing a Stripe charge.

  • The amount of the charge.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger amount;

    Swift

    var amount: UInt { get }
  • The currency of the charge.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull currency;

    Swift

    var currency: String { get }
  • The status of the charge.

    Declaration

    Objective-C

    @property (readonly, nonatomic) SCPChargeStatus status;

    Swift

    var status: ChargeStatus { get }
  • The payment method details associated with the charge.

    Declaration

    Objective-C

    @property (readonly, nonatomic, 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 (readonly, nonatomic, nullable) NSString *stripeDescription;

    Swift

    var stripeDescription: String? { get }
  • Metadata associated with the charge.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSDictionary *_Nonnull metadata;

    Swift

    var metadata: [AnyHashable : Any] { get }
  • The unique identifier for the charge.

    Declaration

    Objective-C

    @property (readonly, nonatomic) 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;