#Gizmo

1 messages · Page 1 of 1 (latest)

rustic oceanBOT
split gate
#

Hi! Let me help you with this.

torpid garnet
#

Hi Vanya, thank you!

split gate
#

Do you use the Card Element?

#

or Payment Element?

torpid garnet
#

I believe we use the more generic Payment Element but I can check (it's been a while since I implemented it)

split gate
#

I would appreciate if you could check

torpid garnet
#

Yes, it's a payment element

#

const paymentElement = elements.create('payment');

#

Does that help?

#

Are you still there, vanya?

split gate
#

Yes, sorry for delay. Please give me a few moments to check.

torpid garnet
#

No worries, thanks I appreciate it!

split gate
torpid garnet
#

Thanks for checking for me. So if I want that data I would basically need to request it twice from the customer - in a form of my own and then as part of the payment element?

split gate
torpid garnet
#

Thank you. Even with the address element, it would be a different form field than the zip code requested by the Payment element, right?

split gate
#

If you have an Address Element, it might not be displayed on the Payment Element. It's best to check

torpid garnet
#

I see, thank you. So if I use the Address Element, I can access the Country and Zipcode via JavaScript unlike the Payment Element?

split gate
#

Yes

rustic oceanBOT
torpid garnet
#

Great! Can you tell me what the syntax should look like / how i would retrieve the values entered into the Address Element on the frontend before it is submitted?

graceful basin
#

👋 taking over for my colleague. Let me catch up.

torpid garnet
#

Hi tarzan, thanks for your help!

graceful basin
torpid garnet
#

Terrific, thank you!

#

To be sure, if I add the Address Element to the page where the Payment Element is, the Country and Zip fields won't be duplicated in the Payment Element?

graceful basin
#

yes

torpid garnet
#

Perfect, this should do the trick in that case. Thanks again for your help, tarzan.