#alex_code
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/1318881413801705544
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐
that i can not control or can get the value to use
That Checkbox is used within the Element, I'm not sure if you have access to it.
Could you please share where/how you are using syncAddressCheckbox?
You are referring to this parameter, right?
https://docs.stripe.com/js/elements_object/create#stripe_elements-options-syncAddressCheckbox
Yes.
I don't use it, it gives me problems because it shows when I use both ways of AddressElemeent and if I use my custom checkbox, the user sees 2 checkboxes. I would like to use this one from stripe if possible, or at least hide it.
I found "syncAddressCheckbox" looking for information in the documentation. I started from the browser inspection where I found the input with the id "checkbox-syncAddress"
Have you tried to set none to syncAddressCheckbox ?
how can i do this?
i tried to set it on AddressElement, but it not exist there
how can i do this?
When you create the Element instance in your JS code:
<https://docs.stripe.com/js/elements_object/create#stripe_elements-options-syncAddressCheckbox >
It's no on the AddressElement, it's on the Element instance creation
It doesn't work with Elements either
You need to set it at the same level of appearance and clientSecret
That's a Typescript warning, I think you can simply ignore it
you can use @ts-ignore
yes, you're right, it's hidden now