#tarantino-47_error

1 messages ¡ Page 1 of 1 (latest)

manic egretBOT
#

👋 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.

misty solar
#

If getting that error, that means you're trying to create a PaymentIntent when the elements mode has been set to setup

trim spire
#

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

misty solar
#

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

trim spire
#

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

misty solar
trim spire
#

yea I'm using it.
can I somehow log/debug elements mode?

misty solar
#

Yeah elements is an object

#

You should be able to log whatever you want from it

trim spire
#

ah, ok, thank you

#

ah once more question

#

can I reset the form somehow?

#

I mean reload it/reset

misty solar
#

Like clear the values?

trim spire
#

sorry I meant reload, maybe I can just manually force the react component to re-render..