#mrfede_link-notshowing

1 messages ยท Page 1 of 1 (latest)

patent grailBOT
#

๐Ÿ‘‹ 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/1253355721970684015

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

silent phoenix
#

Can you link the doc you're looking at?

fleet minnow
#

Im not using the Link Authentication Element. Just the PaymentElement.

silent phoenix
#

Ok can you share a sample setupintent id where you're not seeing link?

fleet minnow
#

Yeah, give a sec

#

seti_1PTlmLLHmVLUO0NifBPnqJeN

silent phoenix
#

Thanks. Can you share a screenshot of what the payment element is rendering when you prefill email too?

fleet minnow
silent phoenix
#

Hm that's the whole thing?

fleet minnow
#

Yup

#

Im in Argentina, I thought it might be blocked for my country, so im using a Canada VPN... idk if that's relevant

#

The Link account is from Canada

silent phoenix
#

Ah yeah I don't think it's available in Argentina. VPNs are kind of hit or miss when testing this

#

Do you have a test page published so I can try it?

fleet minnow
#

I can give you ngrok url that I have running. Will that work?

silent phoenix
#

sure

fleet minnow
#

Just add that to your cart, and proced to checkout... the PaymentElement is in step 2

#

It might be a little slow, cause im running in Next development mode

#

BTW I have hardcoded the Link account email on the PaymentElement to one that actually exists... myemail@gmail.com is just for the code sample.

silent phoenix
#

Ok I see. Will have a colleague look at this

patent grailBOT
dreamy hemlock
#

Hey @fleet minnow , apologies for the delay here. It looks like the issue is that you are specifying link in your payment_method_types when creating your elements session or payment intent. For how link works in the Payment Element, you will actually want to remove link from that array and it should start showing up.

fleet minnow
#

Hi! So I just remove link from payment_method_types, leaving only card?

dreamy hemlock
#

I believe so, not quite sure why that works that way here

fleet minnow
#

Ok let me try that!

#

It didnt work ๐Ÿ˜ฆ

#

There's one request that I found that might be related...

dreamy hemlock
#

Darn. Is this change live on your site that you linked to earlier? I can check it again.

#

What request?

fleet minnow
#

It says "No consumer found for the given email address."... which is weird cause I know the account exists

dreamy hemlock
#

I have not had much luck figuring out what the issue is now. I will reach out to my colleagues and get back to you with what we can find

fleet minnow
#

Ok thanks ๐Ÿ™‚

latent escarp
#

Hi ๐Ÿ‘‹

I"m stepping in as my colleague needs to go.

#

You said

There's one request that I found that might be related...
Can you clarify what you mean here? Is that the screenshot you provided?

fleet minnow
#

Yes, that's the screenshot

#

My guess is that it was looking for a Link account... but Im not sure

solar tiger
#

mrfede_link-notshowing

#

๐Ÿ‘‹ sorry Discord got really busy at once but I'm taking over and looking. Give me a few more minutes otherwise I'll have to send you to support to investigate further

#

@fleet minnow okay you are forcing a specific email address based on your code. Please remove that email address and confirm Link appears as expected

fleet minnow
#

Should I remove the defaultValues prop?

#

If I do that, then Link would not load, am I right?

solar tiger
#

Try removing it and confirm Link appears after that

fleet minnow
#

Ok let me try

#

Ok without defaultValues prop it shows the option to enter the email

#

But since im collecting the email before the payment step, I need to be able to pass it to the PaymentElement and not having to enter it again at this point

#

Also, if I enter my email, seems to think that the account doesnt exist yet (but it does exist)

solar tiger
#

Live Link accounts only exist in Live mode. You are in Test mode. It'd be horrible if we were to text people every time some developer entered a random email address in Test mode. The accounts are entirely separate between Live and Test mode and you likely never signed up for Link in Test mode.

#

Separately: if you pre-fill the email and that email does not have a Link account then we show Link after the payment instead of upfront to not hurt payment conversions.

#

So overall, it's all good, what you have is working totally fine, it's normal that Link doesn't appear because you don't have a Link account with that email address (because of what I said above: Test mode Link accounts are different).
What I did was sign up for Link in Test mode on my account with a fake email address (to not mix it up with my real production account). Once I did that I could pre-fill that email address and see Link "just work"

fleet minnow
#

Ooohh I didnt know about the test Link accounts... how do I get one?

solar tiger
#

you sign up for Link in Test mode on your own account. Test mode Link accounts are just for your own Stripe account.
So you go through the sign up flow during a normal payment. Exactly what you were doing in that last picture. Just enter for example test@example.com, put your phone number (you won't get a real text) and sign up and then you will have a Link account

fleet minnow
#

It worked ๐Ÿ˜„

#

Perfect, thank you so much!