STPIntentAction
public class STPIntentAction : NSObject
extension STPIntentAction: 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.
You cannot directly instantiate an STPIntentAction
.
-
The type of action needed. The value of this field determines which property of this object contains further details about the action.
Declaration
Swift
@objc public let type: STPIntentActionType
-
The details for authorizing via URL, when
type == .redirectToURL
Declaration
Swift
@objc public let redirectToURL: STPIntentActionRedirectToURL?
-
The details for displaying OXXO voucher via URL, when
type == .OXXODisplayDetails
Declaration
Swift
@objc public let oxxoDisplayDetails: STPIntentActionOXXODisplayDetails?
-
Contains instructions for authenticating a payment by redirecting your customer to Alipay App or website.
Declaration
Swift
@objc public let alipayHandleRedirect: STPIntentActionAlipayHandleRedirect?
-
Contains instructions for authenticating a payment by redirecting your customer to the WeChat Pay app.
Declaration
Swift
@objc public let weChatPayRedirectToApp: STPIntentActionWechatPayRedirectToApp?
-
The details for displaying Boleto voucher via URL, when
type == .boleto
Declaration
Swift
@objc public let boletoDisplayDetails: STPIntentActionBoletoDisplayDetails?
-
Contains details describing microdeposits verification flow for US bank accounts
Declaration
Swift
@objc public let verifyWithMicrodeposits: STPIntentActionVerifyWithMicrodeposits?
-
Declaration
Swift
@objc public class func decodedObject(fromAPIResponse response: [AnyHashable : Any]?) -> `Self`?
-
The details for authorizing via URL, when
type == STPIntentActionTypeRedirectToURL
@deprecated UseredirectToURL
instead.Declaration
Swift
@available(*, deprecated, renamed: "redirectToURL", message: "Use `redirectToURL` instead.") @objc public var authorizeWithURL: STPIntentActionRedirectToURL? { get }