fix/details-incorrectly-sent-to-toku #38

Merged
aldarien merged 5 commits from fix/details-incorrectly-sent-to-toku into develop 2025-09-15 17:28:59 -03:00
5 changed files with 71 additions and 10 deletions
Showing only changes of commit 03c05611b0 - Show all commits

View File

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