Open rvdsteege opened 6 days ago
In the Orbis Voys plugin i have used the https://github.com/giggsey/libphonenumber-for-php library, it has a format function for the E164 format. We could use this library to parse phone numbers and format them correctly for Mollie?
I noticed the https://github.com/giggsey/libphonenumber-for-php library adds ~20 MB.
If you only want to make use of the core PhoneNumber Util functionality, you can use giggsey/libphonenumber-for-php-lite, which offers a much smaller package size.
Maybe we can/should use https://github.com/giggsey/libphonenumber-for-php-lite instead?
If it works with https://github.com/giggsey/libphonenumber-for-php-lite that seems like the better choice.
Mollie seems to require a phone number in the E.164 format (+31600000000). Currently, an error can occur e.g. with WooCommerce and the Klarna payment method:
Unfortunately, "E.164 format" in the error message is not very descriptive. Is there something we can do to reduce friction at checkout? Thoughts, @remcotolsma?
Internal Help Scout ticket: https://secure.helpscout.net/conversation/2727955513/27803?viewId=1425710#thread-8245508273