#nykka
1 messages · Page 1 of 1 (latest)
Thanks for the reply! How can I achieve that? Is there a documentation I can follow?
There's not a sample for this exact integration pattern. Conceptually you got it, but is there a particular part that you don't understand how to achieve?
I'm not sure how to destroy and rebuild the instance, which methods should I use?
To destroy the element you'd need to: https://stripe.com/docs/js/element/other_methods/destroy
But you'd need to also create a new elements instance with the new client secret: https://stripe.com/docs/js/elements_object/create
Yup should be able to call the same method on the paymentelement
I'll try it. Thank you so much