#twirtle2_docs
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/1374918885152788542
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! unfortunately that's not possible, but what you can do instead would be to prefill the full name with the data from the previous screen : https://docs.stripe.com/js/elements_object/create_address_element#address_element_create-options-defaultValues-name
ah damn, ok might have to rethink the experience then. I've also added linkAuthenticationElement into my component (with a toggle to enable/disable as i'm testing). Should the experience be
Link Element (enter email address), if logged in then it automatically populates the address element fields below (including full name?)
hmmm, I think it should automatically populate the address element, assuming that Link user does have those details
i think that makes sense, I think I've got it. In terms of getting the values entered out i can see int he address element getValues gives me the address details + name and phone
how do I get the email address entered into the the Link Authentication element?
get or prefill?
both are addressed here :
ah thank you muchly
I think I've got it, appreciate the help
actually maybe i haven't got it. so I've been able to retrieve the email address. so experience is user enters in email address and logs into link
Link is authenticated, but odesn't seem to auto populate the address information from the account.
If i renter the session and Link is already logged in, I can select the email and it'll then populate
i guess I need to handle when the link authentication is logged in to pass into the address?
ah, so you're saying that the Link autopopulation only works if the customer is already logged in to Link?
yea
like if they're logging in for the first time (enter 000000) then Link is logged in, but the address/name details aren't automatically filled in
but on second attempt (now that I've logged prior), everything prefills once I select the account
not sure how to record this experience without exposing my PII lol
hmmmm, i wonder if this is just a test mode quirk. Maybe try using a dummy email address to replicate and record this if that's possible? There are fake email generators out there.
this is the first experience, user enters in their email, and logs in and then successfully logged into Link and the prefill doesn't apply to the address fields
now that I'm already logged into Link, when i re-enter the flow it's recognised my account that I can see and select. Upon selection it prefills the address fields
if you don't mind, can you write in to Support via this link that will be DMed to you. I'll look into whether this is expected behaviour
Hello @primal ocean, we have sent you a direct message, please check it at https://discord.com/channels/@me/1374932858791264276
- 🔗The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
no probs, have just raised the ticket
alright, i'll get back to you about that behavior in the ticket. In the meantime though, is there anything else that I can help you with here on this channel?
thanks! yea my other question now that I'm messing around with the google_api option
I've got this passed into the addressElementOption
if(this.googleMapsApiKey) {
addressElementOptions.autocomplete = {
mode: 'google_maps_api',
apiKey: this.googleMapsApiKey,
}
}
but it doesn't seem to work and provide autocomplete suggestions
are there any errors in the console? cause it definitely should work
hrm I think I've found the related error in console
"Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'src')"
sounds specific to your code?
hrm this is the stripe.js script i think
might eb the way i'm loading hte script
i'll figure it out. i think that's all my questions at this time
okay, feel free to reach out again if you're still having trouble!
tyty!
hmmm, if you're still around, i wanted to let you know that I can't reliably reproduce your issue. For my situation, it mostly does pre-fill the address the first time I login
anyway, I'll check in with our product team to see if they have any additional insights and get back to you via the ticket