#avant-mittal_unexpected
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/1310945714506960937
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- avant-mittal_unexpected, 4 days ago, 5 messages
I don't really think that works as they're two different concepts entirely. The data that is saved to Link and prefilled when the customer authenticates with Link is not collecting by your API requests and/or available to you via the API. See: https://docs.stripe.com/payments/link/payment-element-link#automatic-link-prefill
Anything you save to a Confirmation Token and/or a Customer can potentially be used to prefill Elements fields
The data is getting saved to the confirmation token.
If I confirm the payment using the payment_intent client_secret in the confirm event handler in the frontend - then the address does get saved with the link account. But if I send the confirmation token to the backend and confirm payment at the backend - user does get their Card data saved. Only the shipping address doesn't get saved...
Can you share some oject IDs that demonstrate this? pi_xxx IDs maybe
Ok, let me try...
user does get their Card data saved
Saved where? To Link?
Do you have any examples for me yet?
Hard to diagnose the issue without any concrete examples of one that works as required, and the other that doesn't
Please note - all of this is from test env.
Here is an example which doesn't work:
Confirmation token: ctoken_1QPOh2Ga6HGoFSSGAgrcPgF0
PI: pi_3QPOh6Ga6HGoFSSG0Pm0JI82
Customer: cus_RHyeVNYatqtCDg
Working on an example which works
To confirm, by 'doesn't work' you mean the address fields aren't prefilled when you auth with Link again?
Yes
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Link seems to only pre-fill shipping information, but not billing address. Which one are you trying to collect?
I aim to capture both. But for me - neither gets captured when confirmation token is used at backend to process the payment
I see that the shipping info is available on this PaymentIntent and billing address on the PaymentMethod. Not sure what's not working then.
When I use the Stripe elements and login via the same user - it only fetches my card details. Stripe address element does not get prefilled with the address user entered last time.
This PI that you shared - pi_3QPOh6Ga6HGoFSSG0Pm0JI82 is related to the first payment - when the info should be saved in Link - or the second payment - when the info should be retrieved from Link?
When the users are coming to purchase another product and they enter the same link email ID they provided to us - we want them to see their last stored card and address details so it's a faster checkout process for them for future purchases
Could you please answer my last question âď¸
This is how we want this to appear..
It is the first payment
Okay, we might need to reproduce this issue to understand it fully. Please use this link to create a support issue with my engineering team directly and share a link to your test site, if possible: