Payment request wants US phone number only

Issue #13827427 • Assigned to Molly D.

Details

Author
Aaron P.
Created
Sep 18, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Standard affected
Payment Request API

Found in build #
16.16281
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

When using the PaymentRequest API and setting the requestPayerPhone option to true Edge will only allow you to enter a US phone number.

Either there should be no validation, or configurable validation to allow other locals to request the phone number of the user.

According the my browser user agent I’m not using en-US

> navigator.userAgent

"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16281"

> navigator.language

"en-AU"

The spec seems to imply that the phone number just needs to match E.164 but doesn’t talk about enforcing validation by the browser.

Comparing with Chrome 63 I was able to submit with an AU phone number.

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Molly D.”

  • I found a work-around for this, if you start would a country prefix, eg +61, it works. I was able to submit +61 41 111 111.

You need to sign in to your Microsoft account to add a comment.

Sign in