From 03c05611b07941b1b6908bed9bbae7710dcc0afa Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Mon, 15 Sep 2025 17:26:56 -0300 Subject: [PATCH] FIX: number with country code without + --- app/src/Service/Venta/MediosPago/Toku/Customer.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/Service/Venta/MediosPago/Toku/Customer.php b/app/src/Service/Venta/MediosPago/Toku/Customer.php index 568569c..54a06b4 100644 --- a/app/src/Service/Venta/MediosPago/Toku/Customer.php +++ b/app/src/Service/Venta/MediosPago/Toku/Customer.php @@ -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;