#mrfede_link-notshowing
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/1253355721970684015
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Can you link the doc you're looking at?
Sure, its this one https://docs.stripe.com/payments/link/save-and-reuse
Im not using the Link Authentication Element. Just the PaymentElement.
Ok can you share a sample setupintent id where you're not seeing link?
Thanks. Can you share a screenshot of what the payment element is rendering when you prefill email too?
Hm that's the whole thing?
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
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?
I can give you ngrok url that I have running. Will that work?
sure
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.
Ok I see. Will have a colleague look at this
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.
Hi! So I just remove link from payment_method_types, leaving only card?
I believe so, not quite sure why that works that way here
Ok let me try that!
It didnt work ๐ฆ
There's one request that I found that might be related...
Darn. Is this change live on your site that you linked to earlier? I can check it again.
What request?
It says "No consumer found for the given email address."... which is weird cause I know the account exists
Yes
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
Ok thanks ๐
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?
Yes, that's the screenshot
My guess is that it was looking for a Link account... but Im not sure
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
Should I remove the defaultValues prop?
If I do that, then Link would not load, am I right?
Try removing it and confirm Link appears after that
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)
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"
Ooohh I didnt know about the test Link accounts... how do I get one?
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