Saving Cards
-
A SetupIntent guides you through the process of setting up and saving a customer’s payment credentials for future payments. For example, you could use a SetupIntent to set up and save your customer’s card without immediately collecting a payment. Later, you can use PaymentIntents to drive the payment flow.
See moreDeclaration
Objective-C
@interface SCPSetupIntent : NSObject <SCPJSONDecodable, NSCopying>
Swift
class SetupIntent : NSObject, JSONDecodable, NSCopying
-
Parameters for creating an
See moreSCPSetupIntent
.Declaration
Objective-C
@interface SCPSetupIntentParameters : NSObject
Swift
class SetupIntentParameters : NSObject
-
Builder class for
See moreSCPSetupIntentParameters
.Declaration
Objective-C
@interface SCPSetupIntentParametersBuilder : SCPBuilder <SCPSetupIntentParameters *>
Swift
class SetupIntentParametersBuilder : SCPBuilder<SetupIntentParameters>
-
The possible statuses of the SetupIntent.
See moreDeclaration
Objective-C
enum SCPSetupIntentStatus : NSUInteger {}
Swift
enum SetupIntentStatus : UInt, @unchecked Sendable
-
The SetupIntent usage options tell Stripe how the payment method is intended to be used in the future. Stripe will use the chosen option to pick the most frictionless flow for the customer.
See moreDeclaration
Objective-C
enum SCPSetupIntentUsage : NSUInteger {}
Swift
enum SetupIntentUsage : UInt, @unchecked Sendable
-
A SetupAttempt describes one attempted confirmation of a SetupIntent, whether that confirmation was successful or unsuccessful. You can use SetupAttempts to inspect details of a specific attempt at setting up a payment method using a SetupIntent.
See moreDeclaration
Objective-C
@interface SCPSetupAttempt : NSObject <SCPJSONDecodable>
Swift
class SetupAttempt : NSObject, JSONDecodable
-
Details about a PaymentMethod at a specific time. ex: at time of transaction for a SetupAttempt.
Unlike an SCPPaymentMethod, the details object does not have a
See morestripeId
, and only exists as a sub-object of another Stripe object.Declaration
Objective-C
@interface SCPSetupAttemptPaymentMethodDetails : NSObject <SCPJSONDecodable>
Swift
class SetupAttemptPaymentMethodDetails : NSObject, JSONDecodable
-
An object representing details from a transaction using a card_present payment method.
See moreDeclaration
Objective-C
@interface SCPSetupAttemptCardPresentDetails : NSObject <SCPJSONDecodable>
Swift
class SetupAttemptCardPresentDetails : NSObject, JSONDecodable
-
An error from
See more-[SCPTerminal confirmSetupIntent:completion:]
Declaration
Objective-C
@interface SCPConfirmSetupIntentError : NSError
Swift
class ConfirmSetupIntentError : NSError