mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +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->given_name,
|
||||||
$data->name->surname
|
$data->name->surname
|
||||||
);
|
);
|
||||||
|
// TODO deal with phones without type instead of passing a invalid type
|
||||||
$phone = (isset($data->phone)) ? new PhoneWithType(
|
$phone = (isset($data->phone)) ? new PhoneWithType(
|
||||||
(isset($data->phone->type)) ? $data->phone->type : 'undefined',
|
(isset($data->phone->type)) ? $data->phone->type : 'undefined',
|
||||||
new Phone(
|
new Phone(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue