#vinoth-kumar_api
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/1278356743684100096
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Adding GIF file for better understanding
Interesting, looking in to this. Does that happen when you change from any country to any other country? Or just when changing from India to another country?
Changing from any country to another country
If you open your developer console do any errors show up?
No console error
Do you have a live test page where I can see this behavior myself?
You can try this link by registering
It looks to be because the Link box is automatically unchecked but the Link form will appear again if you check the box. I am trying to figure out if this is expected behavior or not
Ok sure
Sorry just to confirm, I can't see any check box in that payment element, Is am missing anything?
Interesting. For me the checkbox is always present but unchecked. That behavior being inconsistent between our browsers makes this sound like something I will want to file with my colleagues that work on Elements
Can you send me your code for setting up your Payment Element and any relevant backend Stripe code for creating an intent or subscription?
I am having trouble getting my payment element to behave this way so I want to make sure I am doing as close to what you are as possible
I am sorry, sharing code is not possible. Do you have any demo where I can see the Link is showing even after changing the country?
Just want to confirm, whether this is our issue or Stripe issue.
We have been able to reproduce this on our side so no worries, though to be clear I was only looking for the code that initializes Stripe.js and that mounts the payment element. Looks like a change to be made on our side.
Thanks for confirming, and apologize for not sharing the code.
Will I get an update here once it got fixed from your end?
Not immediately sure how long the fix will take. When the fix is out you shouldn't need to make any code changes on your side though.
Ok got it
To clarify what I was talking about with the checkbox, that came from silimar restrictions whether Link can be opted in to by default or not and that does appear to be working properly. So for example I was testing starting with US as my country, the US allows things like Link to be opted in to by default so I was seeing a pre-checked "Save your info for secure 1-click checkout with Link" checkbox appear between the CC info and the Link signup form, when I switched to Germany that got unchecked and the Link form disappeared because the EU does not allow things like Link to be opted in to by default.
The issue here does seem to be specific to India. We don't show the Link checkbox if Link is shown initially but we keep if you choose a country like the US and then switch to Indie. The result is that we are either hiding it or showing it when India is selected when we should be doing the other (still confirming the right behavior) and we are correcting that so that it consistently works properly.
I am having another issue,
- I have added a a@email.com in link for the first time and paid
- Then while purchasing the second item, the link shows a@email.com as a default, but I have logged out from the a@email.com and added b@email.com
- Then I tried to purchase third item, but the b@email.com is not showing in the link, its asking again for registration.
Is the above is the default behaviour or we are missing anything?
@unreal stream do I need to create the above issue as a separate one or good to discuss here?
Apologies for missing that message. I saw this, went to another thread and forgot to check back here. Looking in to this
Same thread is good, this was my bad
No worries ๐
For #2 are you saying that you logged out on link.com between visits to your page? Or that you log out within the payment element and add b@email.com?
Logged out in the payment element and added b@email.com
Gotcha, testing this myself
Ok
I am actually not able to reproduce the behavior that you described. Link properly persists the last email that I used to save
Are you seeing the same behavior on this page? https://4242.io/test/payment-element
Let me check
Also just heard back on the original issue, the specific thing that was happening wrong there is that the checkbox should still show for India. We are working to fix it but there won't be a resolution while this thread is still active. If you want to write in to support to follow that fix you can, but as mentioned you don't need to make any code changes so it will just start working for anyone who visits your page once we release the fix.
Thanks.