#stachujone5
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- stachujone5, 1 day ago, 60 messages
- stachujone5, 1 day ago, 12 messages
No
And can I provide customerID so it autofills data based on it or I've to manually download customerAddress based on his customerId and provide data as a defaultValue, then listen to event.complete and update this customers address using stripe.customers.update
Is this question related to address element?
yeah
I don't see it's directly related to address element, maybe I'm missing something, can you elaborate?
Can addresselement automaticaly prefill its data based on customerId or I've to manually download customers data and pass his shipping to address element as a deffault Value
I mean - is there an option to just pass customerId
and it does all - updating, prefilling with default values
https://stripe.com/docs/js/elements_object/create_address_element#address_element_create-options-defaultValues-name no, but you can prefill the name
ok, thanks Jack
And is there somewhere like a schema of what https://stripe.com/docs/api/customers/retrieve
shipping field can return?
Will all those fields always be there if shipping is not null?
is it string | null then?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I am using stripe npm package
Becuase the types are poor or I am doing something wrong.
Will all those fields always be there if shipping is not null?
If a field doesn't exisit then you'll get null value yes