mollie / PrestaShop

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

phone number issue / country format #949

Open Shoprunners opened 6 days ago

Shoprunners commented 6 days 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 days 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.