#AlexT
1 messages · Page 1 of 1 (latest)
Setting to auto will only collect the fields when it's necessary. If you wish to create the information all the time, I'd recommend setting them to never and collect them separately. For address specifically, you can use Address Element: https://stripe.com/docs/elements/address-element
thanks let me try
No problem! Happy to help 😄
It worked but...
const addressElement = elements.create("address", {
mode: "shipping",
});
addressElement.mount("#address-element");
only shoes name, country and address1 fields
Then when I populate with defaults like for example
const addressElement = elements.create("address", {
mode: "shipping",
defaultValues: {
name: 'Jane Doe',
address: {
line1: '354 Oyster Point Blvd',
line2: '',
city: 'South San Francisco',
state: 'CA',
postal_code: '94080',
country: 'US',
},
},
});
It shows the entire form
Never mind
It ato extends as I start typing