#avant-mittal_unexpected

1 messages ¡ Page 1 of 1 (latest)

raven nestBOT
#

👋 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.

forest relic
#

Anything you save to a Confirmation Token and/or a Customer can potentially be used to prefill Elements fields

limber adder
#

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...

forest relic
#

Can you share some oject IDs that demonstrate this? pi_xxx IDs maybe

limber adder
#

Ok, let me try...

forest relic
#

user does get their Card data saved
Saved where? To Link?

limber adder
#

Yes

#

Next time I authenticate - the card is there but the address is not there

forest relic
#

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

limber adder
#

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

forest relic
#

To confirm, by 'doesn't work' you mean the address fields aren't prefilled when you auth with Link again?

raven nestBOT
limber adder
#

Yes

dire spear
#

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?

limber adder
#

I aim to capture both. But for me - neither gets captured when confirmation token is used at backend to process the payment

dire spear
limber adder
#

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.

dire spear
#

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?

limber adder
#

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

dire spear
limber adder
#

This is how we want this to appear..

dire spear
#

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: