#MarkyMark
1 messages · Page 1 of 1 (latest)
Hello! Give me a few mi nutes to dig around for this - you're basically asking how to clear out the current state after a SetupIntent has been confirmed so you can confirm a new SetupIntent, right?
The only thing I can find is that you'd need to re-render Elements with a new set of options (so that it uses the new client_secret)
sorry what do you mean new client secret?
i was hoping to avoid that a rerender since the stripe docs mention Render an Elements provider at the root of your React app so that it is available everywhere you need it. so if i re-render that it may re-render a lot of nested stuff everything since it is a root but i'll give it a shot
Ifyou're getting new card details then you'll need to generate a new SetupIntent (and with that will come a new client_secret) that you would use to confirm the SetupIntent