#vinicius-zaramella_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/1289204571499008100
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
Hey
Here is a request id with the customer in the request post body req_kG9K52Z9xV8e6Y
which documentation you are following to do this? this one? https://docs.stripe.com/payments/elements/link-authentication-element
Yes
The payment information is retrieved corretly by the Pyament Element but the Address does not
Hi taking over here
I think this is expected
AFAIK address element doesn't support customer sessions
Are you seeing differently somewhere?
Is there a way to show to the returning customer which address we will be using for their checkout?
You'd have to handle that manually
You can use this event to detect a payment method was selected: https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#detect-the-selection-of-a-saved-payment-method
Then retrieve its details/address and display them somewhere
Should I pass the contact field to address with the addrees returned by the payment element, is that it?
https://docs.stripe.com/js/appendix/contact_object
I also found this info in here
Yeah if using link it's done automatically
There's not a simple way for you to autofill it with the saved payment method via customer session
You'd have to recreate the element and pass in each field manually: https://docs.stripe.com/js/elements_object/create_address_element
It is not working with link authentication either
I am creating a SetupIntent in the backend and passing the clientSecret in the stripe.elements options
The Link autenticates correctly, autofill the payment element but not the address element
Even in a fresh session without the customer session the problem still occurs.
the payload I am receiving in the Payment Element on('change') event looks like this
{
"elementType": "payment",
"collapsed": false,
"empty": false,
"complete": true,
"value": {
"type": "link"
}
}
Did you follow the steps here: https://docs.stripe.com/elements/address-element?platform=web#autofill-with-link
Just replicated that line by line and still get the same behavior
Hi there ๐ jumping in as my teamamte needs to step away soon. I'm working on running a test, but I think this autofill behavior may not work in testmode. Let me step through my flow and get back to you.
Alright, just stepped through my test flow and it did autofill the shipping address for me on the second pass through (the first pass was used to collect the address). So it doesn't look like this is a limitation like I suspected. Can you tell me what steps you took and what you saw along the way?