Handle Next Action
Handle a next action
Last verified 2026-09-24
Is this helpful?
stripe.handleNextAction(options: object) Use stripe.handleNextAction in the finalizing payments on the server flow to finish confirmation of a SetupIntent with the requires_action status. It will throw an error if the SetupIntent has a different status. Depending on the payment method and required action, the customer may be temporarily redirected from your site and brought back to the return_url parameter provided when the SetupIntent is confirmed. > Note that stripe.handleNextAction may take several seconds to complete. > During that time, you should disable your form from being resubmitted and show a waiting indicator like a spinner. > If you receive an error result, you should be sure to show that error to the customer, re-enable the form, and hide the waiting indicator. > > Additionally, stripe.handleNextAction may trigger a 3D Secure authentication challenge. > The authentication challenge requires a context switch that can be hard to follow on a screen-reader. > Ensure that your form is accessible by ensuring that success or error messages are clearly read out. - options - clientSecret The client secret of the SetupIntent. ### Example title Handle a next action Is this helpful?