#mkoenke_unexpected

1 messages ¡ Page 1 of 1 (latest)

uncut birchBOT
#

👋 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/1237789807715815466

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

abstract juniperBOT
#

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.

fringe moth
#

this question is not related to the previous discussions

uncut birchBOT
knotty abyss
#

Hello! To clarify, passing an email in billing details prevents Link from showing as an option, but if you don't supply an email addrress Link shows up?

fringe moth
#

yes that is correct! no we have not used the link authentication element, why would we need to do that in addition to the payment element default values?

knotty abyss
#

When you want to always collect and/or prefill an email address and offer Link, using the Link Authentication Element and the Payment Element together provides the best experience.

#

If you only want to collect email when required Payment Element alone works well, as not all payment options require an email address.

fringe moth
#

so we should probably replace our email input with the link authentication element to have the best experience. Do you have any idea why link disappears with the defaultValues? this solution would be a lot easier for us and according to the docs it seems like that should be an option that works.

knotty abyss
#

In the section below that it explains that you need to not use defaultValue to get the prefill functionality to work:

fringe moth
#

oh I see, that makes sense

#

Do you have any idea why link disappears with the defaultValues?

knotty abyss
#

I think it's probably because not all payment methods have an email field by default, and when you prefill it there's not really an option to change it in a lot of cases (unless you have the explicit Link Authentication Element).

fringe moth
#

ohhhh i see, that also makes sense. ok thanks so much!

knotty abyss
#

Happy to help!

fringe moth
#

If we use the link authentication element, does that remove the link option from the payment element? I would think you would not need both and they seem to interact with each other so there is not duplicate information collected

knotty abyss
#

The Link Authentication Element acts as an email input field and will take care of the Link process, yep.