SCPConfirmSetupIntentError
Objective-C
@interface SCPConfirmSetupIntentError : NSError
Swift
class ConfirmSetupIntentError : NSError
An error from -[SCPTerminal confirmSetupIntent:completion:]
-
The updated SetupIntent after
confirmSetupIntent
failed.Declaration
Objective-C
@property (nonatomic, readonly, nullable) SCPSetupIntent *setupIntent;
Swift
var setupIntent: SCPSetupIntent? { get }
-
If
confirmSetupIntent
failed because the underlying network request errored, this property contains additional details about the error.Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSError *requestError;
Swift
var requestError: (any Error)? { get }
-
If
confirmSetupIntent
failed because the payment method was declined, this property contains the decline code.Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *declineCode;
Swift
var declineCode: 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;