STPIntentAction
@interface STPIntentAction : NSObject <STPAPIResponseDecodable>
Next action details for STPPaymentIntent
and STPSetupIntent
.
This is a container for the various types that are available.
Check the type
to see which one it is, and then use the related
property for the details necessary to handle it.
-
Unavailable
You cannot directly instantiate an STPIntentAction.
You cannot directly instantiate an
STPIntentAction
.Declaration
Objective-C
- (nonnull instancetype)init;
-
The type of action needed. The value of this field determines which property of this object contains further details about the action.
Declaration
Objective-C
@property (readonly, nonatomic) STPIntentActionType type;
Swift
var type: STPIntentActionType { get }
-
The details for authorizing via URL, when
type == STPIntentActionRedirectToURL
Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) STPIntentActionRedirectToURL *redirectToURL;
Swift
var redirectToURL: STPIntentActionRedirectToURL? { get }
-
Deprecated
Use
redirectToURL
insteadThe details for authorizing via URL, when
type == STPIntentActionTypeRedirectToURL
@deprecated Use
redirectToURL
instead.Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) STPIntentActionRedirectToURL *authorizeWithURL;
Swift
var authorizeWithURL: STPIntentActionRedirectToURL? { get }