#vinicius_link-address
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/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.
- vinicius-zaramella_api, 1 hour ago, 34 messages
We don't re-open old threads. Can you please summarize the current state of your question here?
I am trying to use Address Element with Link Authentication Element.
The Payment Element autofills the data correctly but the Address element does not.
What kind of autofill are you referring to here?
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?
I basically followed this https://docs.stripe.com/elements/address-element?platform=web#autofill-with-link
line by line and the problem still occurs
Do you see the same behavior?
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
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.
I don't see the saved addresses
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?
I recorded a video https://www.loom.com/share/85c2d3e0e0314797a009976a78716ca6?sid=89720399-d004-4eef-a799-fd4cf467495d
Hey there! Join me as I walk through the Chicago flow. I showcase the loading of elements, entering personal details, testing a card payment, and encountering a redirect. I highlight issues with address autofill and discuss the OTP process. Watch to understand the user journey and potential improvements. Action: Review the address autofill funct...
Can you share the JS code you use to create and mount the elements?
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
Yup that makes sense
One more thing to note is that if I use the express checkout element I can see that the billing address is on file
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
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.
Link does a lot of this authentication using session cookies. Are you exclusively testing in Incognito mode?
I did both in incognito and normal window.
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
But when I complete the process in Chrome I do see the adress information pre-filled but only if I successfully completed the payment
vinicius_link-address
I can see in the stripe dashboard that the payment succeded
What is your exact question
what do you mean?
You shared a picture but it didn't come with a question. I'm trying to figure out what you still need help with
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
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