#autum-ashes_docs

1 messages ยท Page 1 of 1 (latest)

kind magnetBOT
#

๐Ÿ‘‹ 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/1418193395070795836

๐Ÿ“ 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.

molten fossil
#

hi there!

#

but it does not support autofill.
can you clarify what that means? do you get an error message or something? a screenshot or video of the issue would help.

frozen crescent
#

Please excuse me for image quality but docs itself demonstrate autofill of shipping address

molten fossil
#

I'm familiar with how things are supposed to work. but I sitll don't understand who things currenlty work on your end.

#

can you share a video/screenshot/url of your page so I can better understand your issue?

frozen crescent
#

Shipping is not auto populating

molten fossil
#

does that Link account has a shipping address saved? also, do you see any errors in the browser console?

frozen crescent
#

This is onload but I don't see any error while choosing a saved email

molten fossil
#

errors on the /b url can be safely ignored, they are related to analytics.

#

does that Link account has a shipping address saved?

frozen crescent
#

I am not sure how to check that can you guide me

#

I did fill both shipping and billing details during payment

molten fossil
#

are you doing this in test mode or live mode?

frozen crescent
#

I am currently using sandbox mode with elements creating in setup mode

molten fossil
#

got it. my guess is your Link accounts doesn't have a shipping address saved, that's why it won't be auto-filled. I recommend asking Stripe support to double check this: https://support.stripe.com/contact

frozen crescent
#

Is it a setting we need to enable?

#

Or the buyer shipping details are not saved?

#

I have one more query

#

Why there is no change event trigger on billing and shipping elements when a saved email is selected and details are auto filled

molten fossil
#

Or the buyer shipping details are not saved?
I'm not super familiar with Link, so not sure, sorry.

#

Why there is no change event trigger on billing and shipping elements when a saved email is selected and details are auto filled
so the change event is working, except when things get auto-filled?

frozen crescent
#

Yes

kind magnetBOT
half cave
#

hey there! taking over from my colleague

#

I'm currently trying to reproduce the issue you described

frozen crescent
#

Thank you

half cave
#

are you perhaps able to share a testing URL for your page for us to inspect?

frozen crescent
#

Ah I am running it in a simple html file

half cave
#

no problem! still looking into it on our end

half cave
#

still investigating, thanks for your patience!

#

we've been unable to reproduce the issue I'm afraid (the onChange event is firing in our test)

a few points to note:

  1. you need to ensure you're listening for the change event on the Address element: https://docs.stripe.com/js/element/events/on_change?type=addressElement
  2. the Address Element needs to be in 'shipping' mode: https://docs.stripe.com/elements/address-element#autofill-with-link

can you confirm your test is doing these things? if so, can you confirm if there are any errors in your browser console after the data is autofilled?

frozen crescent
#

Let me share my code snippet

#

Please update publish key

frozen crescent
molten fossil
#

can you add a console.log inside addressElement.on('change', function(event) { ... });? and double check that you don't see that console.log when the shipping address is prefilled?

kind magnetBOT
frozen crescent
#

It's strange, I am getting trigger now but now shipping details are empty

#

Do you also experience the same issue?

#

Also do we have any trigger to check or track if "Billing is same as shipping information" checkbox

trail slate
#

Hey there, taking over for my colleagues as they had to step away

#

Give me a moment to try and recreate this on my machine

frozen crescent
#

Sure

trail slate
#

Just letting you know that I'm still testing this - I ran your code on my machine and saw the same thing you're seeing (no autocomplete). Still investigating

frozen crescent
#

Ok thanks for update

trail slate
#

Okay, I still haven't been able to get the address to autofill. Can I send you a DM to convert this into a support case so I can keep investigating and follow up with you?

frozen crescent
#

Ok