- From: Marcos Cáceres <notifications@github.com>
- Date: Mon, 29 Jan 2018 03:13:38 +0000 (UTC)
- To: w3c/payment-request <payment-request@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 29 January 2018 03:14:04 UTC
@asolove-stripe wrote: > Can we at least require numbers to include country code? As I said, the problem is that we can't really specify how to do the conversion without standardizing libphonenumber's parse algorithm. What we might need is a `.payerCountry` attribute (or `.payerPhoneCountry`). Which can then be fed into libphonenumber (or similar lib), so that: ```js // given "(408) 123-4567", and "US" const phone = phoneUtil.parse(response.payerNumber, response.payerCountry); // Yields, for instance, "+14081234567" ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/payment-request/issues/652#issuecomment-361129081
Received on Monday, 29 January 2018 03:14:04 UTC