#tarantino-47_error
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1291404870582009866
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
If getting that error, that means you're trying to create a PaymentIntent when the elements mode has been set to setup
actually I'm not creating a PaymentIntent on the FE, it's being created on the BE. on the FE I only collect payment method detail
Yeah but that error comes when you attempt to confirm a payment intent
Which is done on the frontend
And elements mode is in setup
is there a way to reset elements PaymentElement on the FE? or is there a way to log/debug which mode is currently set to active?
in react SDK
Yeah you can call elements.update to change the mode if you need to: https://docs.stripe.com/js/elements_object/update#elements_update-options-mode
yea I'm using it.
can I somehow log/debug elements mode?
ah, ok, thank you
ah once more question
can I reset the form somehow?
I mean reload it/reset
sorry I meant reload, maybe I can just manually force the react component to re-render..