#kacperwilczewski
1 messages · Page 1 of 1 (latest)
Hi there, it sounds like a bug to me.
<AddressElement
onChange={(event) => {
handleAddressElementChange(event, setFieldValue, values);
}}
options={{
mode: 'shipping',
fields: {
phone: 'always',
},
validation: {
phone: {
required: 'always',
},
},
defaultValues: {
name: '.',
phone: loggedUser?.company.phone_number || '',
address: {
line1: loggedUser?.company.address || '',
line2: '',
city: loggedUser?.company.city || '',
state: loggedUser?.company.state || '',
postal_code: loggedUser?.company.zip_code || '',
country: loggedUser?.company.country || '',
},
},
}}
/>
What's the value of loggedUser?.company.phone_number ?
+48123123123
OK, and the AddressElement will display +48+48123123123 ?
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
I think it should be 123123123 correctly.
yes I agree
We see a dropdown that correctly shows +48, but I don't know why it is repeated in the next input.
as my colleague mentioned earlier this sounds like a bug. I recommend sending all of this info to https://support.stripe.com/contact/email?topic=api_integration
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
so we can try to fix it internally and get back to you once we do
So you think the error is not on my side but on Stripe's?