STPPaymentIntent
@interface STPPaymentIntent : NSObject <STPAPIResponseDecodable>
A PaymentIntent tracks the process of collecting a payment from your customer.
-
Unavailable
You cannot directly instantiate an STPPaymentIntent. You should only use one that has been returned from an STPAPIClient callback.
You cannot directly instantiate an
STPPaymentIntent
. You should only use one that has been returned from anSTPAPIClient
callback.Declaration
Objective-C
- (nonnull instancetype)init;
-
The Stripe ID of the PaymentIntent.
Declaration
Objective-C
@property (readonly, nonatomic) NSString *_Nonnull stripeId;
Swift
var stripeId: String { get }
-
The client secret used to fetch this PaymentIntent
Declaration
Objective-C
@property (readonly, nonatomic) NSString *_Nonnull clientSecret;
Swift
var clientSecret: String { get }
-
Amount intended to be collected by this PaymentIntent.
Declaration
Objective-C
@property (readonly, nonatomic) NSNumber *_Nonnull amount;
Swift
var amount: NSNumber { get }
-
If status is
STPPaymentIntentStatusCanceled
, when the PaymentIntent was canceled.Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSDate *canceledAt;
Swift
var canceledAt: Date? { get }
-
Capture method of this PaymentIntent
Declaration
Objective-C
@property (readonly, nonatomic) STPPaymentIntentCaptureMethod captureMethod;
Swift
var captureMethod: STPPaymentIntentCaptureMethod { get }
-
Confirmation method of this PaymentIntent
Declaration
Objective-C
@property (readonly, nonatomic) STPPaymentIntentConfirmationMethod confirmationMethod;
Swift
var confirmationMethod: STPPaymentIntentConfirmationMethod { get }
-
When the PaymentIntent was created.
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSDate *created;
Swift
var created: Date? { get }
-
The currency associated with the PaymentIntent.
Declaration
Objective-C
@property (readonly, nonatomic) NSString *_Nonnull currency;
Swift
var currency: String { get }
-
The
description
field of the PaymentIntent. An arbitrary string attached to the object. Often useful for displaying to users.Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSString *stripeDescription;
Swift
var stripeDescription: String? { get }
-
Whether or not this PaymentIntent was created in livemode.
Declaration
Objective-C
@property (readonly, nonatomic) BOOL livemode;
Swift
var livemode: Bool { get }
-
If
status == STPPaymentIntentStatusRequiresSourceAction
, this property contains the next action to take for this PaymentIntent.Declaration
Objective-C
@property (readonly, nonatomic, nullable) STPPaymentIntentSourceAction *nextSourceAction;
Swift
var nextSourceAction: STPPaymentIntentSourceAction? { get }
-
Email address that the receipt for the resulting payment will be sent to.
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSString *receiptEmail;
Swift
var receiptEmail: String? { get }
-
The Stripe ID of the Source used in this PaymentIntent.
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSString *sourceId;
Swift
var sourceId: String? { get }
-
Status of the PaymentIntent
Declaration
Objective-C
@property (readonly, nonatomic) STPPaymentIntentStatus status;
Swift
var status: STPPaymentIntentStatus { get }