#vinicius_link-address

1 messages ยท Page 1 of 1 (latest)

fervent sphinxBOT
#

๐Ÿ‘‹ 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/1289263460433264711

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

hot turtle
#

We don't re-open old threads. Can you please summarize the current state of your question here?

placid surge
#

I am trying to use Address Element with Link Authentication Element.
The Payment Element autofills the data correctly but the Address element does not.

hot turtle
#

What kind of autofill are you referring to here?

placid surge
#

When the user authenticate through Link and the Address is pulles from the Link account

#

This was the last message I received in the last ticket

Alright, just stepped through my test flow and it did autofill the shipping address for me on the second pass through (the first pass was used to collect the address). So it doesn't look like this is a limitation like I suspected. Can you tell me what steps you took and what you saw along the way?

hot turtle
#

Do you see the same behavior?

placid surge
#

I do not.

#

On my side the payment card info gets populated correctly but the address does not.

#

There are also some warnings in there. I am not sure they are related

hot turtle
#

When I step through my own test integration, I see the Address Element is still empty but I also see a link that says "use saved address". When I click this it hides the address element inputs and adds a saved address.

placid surge
#

I don't see the saved addresses

hot turtle
#

Can you run through this flow yourself and manually add an address? Then try it again to see if you see a saved address available?

placid surge
#
hot turtle
#

Can you share the JS code you use to create and mount the elements?

placid surge
#
this.stripe = globalThis.Stripe('pk_test_YBxYftx9lKakEUlAPiNKsDKv005yBkvwaI', {
  stripeAccount: 'acct_1Q3GMvGbzefMA7wC',
})
const clientSecret = await fetchFromServer()
const elements = this.stripe.elements({clientSecret})
const linkAuthElement = elements.create('linkAuthentication')
const addressElement = elements.create('address', { mode: 'shipping' })
const paymentElement = elements.create('payment')
linkAuthElement.mount('#link-auth-element')
addressElement.mount('#address-element')
paymentElement.mount('#payment-element')
#

I simplified the fetchFromServer But it is generating a SetupIntent and returning the clientSecret

hot turtle
#

Yup that makes sense

placid surge
#

One more thing to note is that if I use the express checkout element I can see that the billing address is on file

hot turtle
#

Ah but that is very different

#

Link accounts are their own source of data

#

The same Link account can be associated with any number of Customer records

placid surge
#

In this case I did the express checkout through Link also. So I think it is pulling the data from the Link account ๐Ÿค”

#

Is there any other info that I could provide that would help? ids? requests?

#

I am doing this in test mode in my local envinroment.

hot turtle
#

Link does a lot of this authentication using session cookies. Are you exclusively testing in Incognito mode?

placid surge
#

I did both in incognito and normal window.

hot turtle
#

And I saw in your video that you were prompted for a phone number. When I test in Firefox Link does not prompt me for a phone number and I never have my information saved

fervent sphinxBOT
hot turtle
#

But when I complete the process in Chrome I do see the adress information pre-filled but only if I successfully completed the payment

left sluice
#

vinicius_link-address

placid surge
#

I can see in the stripe dashboard that the payment succeded

left sluice
#

What is your exact question

placid surge
#

what do you mean?

left sluice
#

You shared a picture but it didn't come with a question. I'm trying to figure out what you still need help with

placid surge
#

Did you loose the whole context?

#

๐Ÿ˜ข

left sluice
#

No, but you had a really long confusing discussion. So now that you have a real payment, what is the issue with it? What do you see in the API and what isn't working

placid surge
#

Basically I am trying to use Link Authentication Element with the Address Element

#

I expect the address to auto filled with saved address when I authenticate with Link

#

And that is not happening

#

The payment was a response to this message from the other attendent

Snufkin โ€” Hoje ร s 14:36
But when I complete the process in Chrome I do see the adress information pre-filled but only if I successfully completed the payment