STPPaymentIntentAction
@interface STPPaymentIntentAction : NSObject <STPAPIResponseDecodable>
Action details for an STPPaymentIntent. 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 STPPaymentIntentAction.
You cannot directly instantiate an
STPPaymentIntentAction
.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 (nonatomic, readonly) STPPaymentIntentActionType type;
Swift
var type: STPPaymentIntentActionType { get }
-
The details for authorizing via URL, when
type == STPPaymentIntentActionTypeRedirectToURL
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) STPPaymentIntentActionRedirectToURL *redirectToURL;
Swift
var redirectToURL: STPPaymentIntentActionRedirectToURL? { get }
-
Deprecated
Use
redirectToURL
insteadThe details for authorizing via URL, when
type == STPPaymentIntentActionTypeRedirectToURL
@deprecated Use
redirectToURL
instead.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) STPPaymentIntentActionRedirectToURL *authorizeWithURL;
Swift
var authorizeWithURL: STPPaymentIntentActionRedirectToURL? { get }