#dave_code
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/1303068200010911764
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello, looking in to this. Those are the only fields that support prefilling information, so I think the issue is that Link relies on cookies rather than the prefilled email address. That is interesting that it disappears there though, so if you remove the prefilled info Link will show up, but if any field is prefilled it disappears?
yes that's correct
My colleagues are seeing the same thing as me, that defaultValues parameter is the only way to prefill values. It is expected to prefill the email properly here and as far as we can tell the option to sign up for Link should still show up if the email doesn't have a Link account associated with it.
Can you send the other code that you have for setting up this payment element?
sure
just the same values but passed into the element
onReady={() => setIframeLoading(false)}
options={{
defaultValues: {
billingDetails: {
name: `${displayName} ${lastName}`,
email: email ?? '',
phone,
address: {
country: 'US',
},
},
},
}}
/>```
@main light Apologies for the delay, I just tested with the same code and things are working for me. Currently the behavior is:
- If the email address has a link account, the Payment Element recogizes this and starts with a 2FA prompt
- If the email address does not have an account, nothing Link related shows up initially but then a "Save your info for secure 1-click checkout with Link" checkbox shows up when the card details are complete
Are you saying that Link isn't showing up for you in either scenario? Or is this potentially just confusion around needing the card details to be filled out in scenario 2?