Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

4466 articles

Confirm Setup Intent Element


Confirm a Setup Intent with an Element stripe.confirmSetupIntent(clientSecret: string, element: Element, data?: object) confirmSetupIntent has been deprecated. Going forward, if you wish to confirm on the client without handling next actions, simply pass {handleActions: false} as a third argument to confirmCardSetup. While we have no plans to ever remove support for confirmSetupIntent, we think that explicitly opting out of next action handling is easier to understand and will better convey what the method is doing. Use stripe.confirmSetupIntent(clientSecret, element, data) when the customer submits your save payment method form. It will gather payment information from element, along with any other data you provide, and confirm the SetupIntent. Only use this method if you want to handle next actions yourself. Otherwise, use stripe.handleCardSetup. > Note that stripe.confirmSetupIntent 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. - clientSecret The client secret of the SetupIntent to confirm. - element An Element that will be used to create a payment method. - data Data to be sent with the request. It can contain the following parameters - payment_method_data Use this parameter to supply additional data relevant to the payment method, such as billing details. - billing_details The billing details associated with the card. ### Example title Confirm a SetupIntent

Last verified 2026-09-24

Is this helpful?