#filipsh_addresselement-phone
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/1271148750487687310
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
okay sorry I'm getting a bit stuck trying to reproduce your issue @pine dagger
what exactly isn't working?
Ah I think I see what you mean, we ask for the phone number but you can submit without filling it out
Is a react code, it looks like this. <LinkAuthenticationElement />
<AddressElement options={addressOptions} />
<PaymentElement options={paymentOptions} /> --> the first element is to the email, the address element is to the shipping info and the last one is the payment data (like card or paypal). The problem is that i need the phone number once finished the payment, but it looks like optional, and the users may not complete it
that's... weird. That seems like a bug to me, let me ask my team
Yhank you so much, the solution is const addressOptions: StripeAddressElementOptions = {
mode: "shipping",
fields: { phone: "always" },
validation: { phone: { required: "always" } },
};
๐
yep just tried and it works. TIL that this feature exists, I had to ask my team, never seen this before