#jamie_97274
1 messages · Page 1 of 1 (latest)
hi! technically you can unmount all the Elements and call stripe.elements() again and create a new instance, but it's pretty clunky. But what's the overall use case/goal here? There can be better options, like deferring the PaymentIntent creation
Hi Karllekko, it's the fact that iDeal needs to be done using a setupIntent client secret and card should use a paymentIntent client secret
so I am looking to find a way to refresh the elements with a different secret
don't think you can really, I would build it as two separate pages
that's not possible as on the actual payment page they can select their method such as ideal or card
is there no way to "refresh" stripe elements?
no
you'd have to call https://stripe.com/docs/js/element/other_methods/unmount , and create a new stripe.elements() instance and a new PaymentElement, AFAIK