#franke_phone-dashboardapi

1 messages ¡ Page 1 of 1 (latest)

primal lanternBOT
#

👋 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/1215436312740364369

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

chrome fogBOT
autumn grove
#

Hi there! I think this is some special treatment we're doing in the Dashboard.

#

Doing some quick testing

strong carbon
#

Like using the countr: "xx" to set the country code?

chrome fogBOT
autumn grove
#

I see you're creating the Checkout Session with phone_number_collection[enabled]: true . When I do this on my end, I see a phone number field with a country drop down menu. If I click the US flag here, I can select a different country. That said, If i go through the Checkout flow, the resulting customer has a phone field that includes the country code

#

I'm not yet sure why the phone number for the customer in your example does not include the country code

strong carbon
#

Yes that seems to be the normal, however If you look at the example i linked, you will notice that the phone number is present in the event data without any country code but still apeears in the dashboar with the country code.

past shadow
#

The Dashboard and the API will render those differently, that's common

#

and I think we only put the prefix if the country doesn't match yours or something like this

#

franke_phone-dashboardapi

#

I agree it's not great, I have flaggedthat feedback before internally. My advice is to reach out to support and they can help investigate this further and see if it's something we can fix in the future: https://support.stripe.com/contact

strong carbon
#

I think the logic is that a national country code it is normally not needed and therefore can be omitted.
I my case the SMS api (D7) does however always require the country code.
it seems easy to work around by checking for the + in front of the number.
If not found then prepend +45 (in my case)

#

Thanks a lot for the prompt support.