#timg_unexpected
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1257347303199608924
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Hello
I'm not sure I understand what you mean by:
trying to login to my Stripe account
Do you mean it doesn't actually prompt you for your Link account?
See how when I enter email it's now thinking I'm on a stripe login page
vs just autofilling the field with my email address
you can replicate it here - https://docs.stripe.com/payments/elements/link-authentication-element
Sorry I need you to be more specific. What does " it's now thinking I'm on a stripe login page" mean? Are you talking about the drop down options shown by chrome there?
One sec
Ok so in the original file you saw how it has emailed followed by the stored password? It's trying to login to that email field.
But on other checkouts you see how it's just trying to autofill my email and other information
So that Link Element isn't treating it like a normal email field. It's treating it like a login field
Okay so you are specifically referring to how the Chrome or Apple autofill stuff works?
And yes, it is a login field.
That is what Link Element does -- it logs you into your Link account so that it is then used for payment
It's trying to use my business accounts for stripe to login
That has nothing to do with Stripe though -- that is just prefill information done via Chrome
Like when you click on "Manage addresses" there where does it take you?
This is the only email field anywhere that does this. It makes no sense why it'd try to login with my business account
it used to autofill my email
It will autofill if you are setting a defaultValue
Are you setting defaultValues.billingDetails.email? Are you using Payment Element here or the standalone Link Authentication Element?
Looks like just Link Auth Element
The same thing happens here - https://docs.stripe.com/payments/elements/link-authentication-element
That is because there is no defaultValues set there
When you create your Link Authentication Element you need to pass defaultValues.email: https://docs.stripe.com/js/elements_object/create_link_authentication_element#link_authentication_element_create-options-defaultValues if you want a prefill