Saving Cards
-
Parameters for reading a reusable card.
NOTE: Most integrations should not use
readReusableCard
.You should create a
PaymentIntent
and use the associatedcollectPaymentMethod
andprocessPayment
methods if you are simply collecting a payment from a customer.You can use
-[SCPTerminal readReusableCard:delegate:completion:]
to read payment details and defer payment for later. TheSCPPaymentMethod
created by this method will have typecard
, suitable for use with online payments.Note that if you use this method to defer a payment, the transaction will not receive the beneficial rates and liability shift associated with card present transactions.
See moreDeclaration
Objective-C
@interface SCPReadReusableCardParameters : NSObject
Swift
class ReadReusableCardParameters : NSObject
-
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
-
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