mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add todo for dealing with phone without types
This commit is contained in:
parent
715c9d29a4
commit
ff4f3d2bba
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ class PayerFactory
|
|||
$data->name->given_name,
|
||||
$data->name->surname
|
||||
);
|
||||
// TODO deal with phones without type instead of passing a invalid type
|
||||
$phone = (isset($data->phone)) ? new PhoneWithType(
|
||||
(isset($data->phone->type)) ? $data->phone->type : 'undefined',
|
||||
new Phone(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue