mollie / PrestaShop

iDEAL, Creditcard, Bancontact, SOFORT, Bank transfer, PayPal & paysafecard for Prestashop
http://www.mollie.com
BSD 2-Clause "Simplified" License
69 stars 44 forks source link

phone number issue / country format #949

Closed Shoprunners closed 3 months ago

Shoprunners commented 4 months ago

Expected behavior

Use the current active phone number

Actual behavior

if the mobile_phone number is set, it is always used, even if the address of a country does not have the mobile_phone assigned.

Steps to reproduce the behavior

1.Have a country format with phone and mobile_phone. 2.Enter 2 different phone numbers for your address with a wrong format

  1. Go to checkout and use Klarna. Error will occur "WRONG_BILLING_PHONE_NUMBER_EXCEPTION"
  2. disable mobile_phone in backoffice for a country
  3. edit your phone number as a customer in front office to a valid format and repeat checkout.
  4. Same error, because mobile_phone will be used.

Problem

private function getMobileOrPhone(Address $address)

in class PhoneNumberProvider

Environment

justelis22 commented 4 months ago

Hi there @Shoprunners, Thanks for waiting!

The information was forwarded to our development team, as soon as we analyze this issue and have more details, I will get back to you.

Best Regards, Invertus Support team.

justelis22 commented 4 months ago

Hi there @Shoprunners, Thanks for waiting!

Yesterday we prepared a demo release. It should have the fix for your issue included, so I would appreciate if you could install the demo version and let me know if that improves the situation.

You can find the demo here - https://github.com/mollie/PrestaShop/releases/tag/v6.2.2-beta

Best Regards, Invertus Support team.

justelis22 commented 3 months ago

Hi there,

Version 6.2.2 is now live, I am closing this issue.

If you have some feedback, please comment on this issue and we will get back to you!.

Best Regards, Invertus Support team.