#funkthat-addresselement

1 messages ยท Page 1 of 1 (latest)

woven cedarBOT
short apex
toxic dock
#

Hi @short apex, thank you for your reply - correct I am attempting to add this element.

short apex
#

And you are not trying to charge funds or save a payment method like a credit card?

toxic dock
#

i already have all this created, so basically i have created my own billing/customer portal and when customer need to update their address or shipping address, I want them to be able to do this

short apex
toxic dock
#

ok great wasn't sure about that as when I read about setup intent it referred to using it for payment's, but if it is the correct way to retrieve a secret, that is good to know ๐Ÿ™‚

#

and thank you ๐Ÿ™

short apex
#

Oh wait..

#

A colleague of mine just showed me an example of creating an Address Element without a client secret

toxic dock
#

ohhh sounds awesome

short apex
#

You do not have to include a client secret in your options

toxic dock
#

so the idea here is retrieve the current address using an api call and display this via js after we have created this element?

#

i'd like the fields populated with existing data so a customer can then update if required

short apex
toxic dock
#

Perfect thank you, I'll give that a shot, if there are any further questions, is it ok to reach out here or should I raise a new question?

Thanks!

short apex
#

It depends on the timing. If you have a new Q in a few minutes you can come back here. Otherwise you can start a new thread.

#

Also if it's related to this conversation it makes sense to ask here

toxic dock
#

Thank you @short apex

short apex
#

Happy to help ๐Ÿ™‚