#gonsanto_code

1 messages ยท Page 1 of 1 (latest)

odd 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/1282629203606507551

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

lost dew
#

<PaymentElement options={{paymentMethodOrder:[...]}} >

native slate
#

there is no paymentMethodOrder ๐Ÿค”

lost dew
#

you're probably using an old version of the library that doesn't have the types yet

#

if you pass it anyway(and maybe use @ts-ignore), does it work at runtime?

native slate
#

hmmmm ok I will check if there is an update and try with just @ts-ignore

#

thanks for the quick response @lost dew !

lost dew
#

not <PaymentElement

#

they are different and they take different options

native slate
#

Oh yes we are using <Elements and not <PaymentElement

#

whats the difference between <Elements or <PaymentElement ? I cant find any doc about the diff between both

lost dew
#

Elements is the wrapper that provides the library to any child components, PaymentElement is the actual visible component

native slate
#

yes just noticed that... sorry it is Monday and early ๐Ÿ™‚ thank you for all your help... now it is working fine

lost dew
#

no worries, it is definitely confusing