STPIntentActionType
enum STPIntentActionType {}
Types of next actions for STPPaymentIntent
and STPSetupIntent
.
You shouldn’t need to inspect this yourself; STPPaymentHandler
will handle any next actions for you.
-
This is an unknown action, that’s been added since the SDK was last updated. Update your SDK, or use the
nextAction.allResponseFields
for custom handling.Declaration
Objective-C
STPIntentActionTypeUnknown
Swift
case unknown = 0
-
The payment intent needs to be authorized by the user. We provide
STPPaymentHandler
to handle the url redirections necessary.Declaration
Objective-C
STPIntentActionTypeRedirectToURL
Swift
case redirectToURL = 1
-
The payment intent requires additional action handled by
STPPaymentHandler
.Declaration
Objective-C
STPIntentActionTypeUseStripeSDK
Swift
case useStripeSDK = 2