FIX: number with country code without +

This commit is contained in:
Juan Pablo Vial
2025-09-15 17:26:56 -03:00
parent ae1b985b35
commit 03c05611b0

View File

@ -103,7 +103,11 @@ class Customer extends AbstractEndPoint
continue;
}
if (!str_starts_with($value, '+')) {
$value = "+56{$value}";
if (str_starts_with($value, '56')) {
$value = "+{$value}";
} else {
$value = "+56{$value}";
}
}
$params[$key] = $value;
continue;