Update: 2026-06-23 18:21:54

This commit is contained in:
Hamza-Ayed
2026-06-23 18:21:54 +03:00
parent f25066140f
commit 4043d939f2

View File

@@ -180,9 +180,12 @@ function sendIntaleqOtp(string $receiver, string $otp, string $method = 'whatsap
return false; return false;
} }
// Normalize receiver to start with +
$phoneWithPlus = (strpos($receiver, '+') === 0) ? $receiver : '+' . $receiver;
$apiUrl = 'https://otp.intaleqapp.com/api/request-otp.php'; $apiUrl = 'https://otp.intaleqapp.com/api/request-otp.php';
$payload = [ $payload = [
'phone' => $receiver, 'phone' => $phoneWithPlus,
'app_key' => $appKey, 'app_key' => $appKey,
'device_type' => 'android', 'device_type' => 'android',
'method' => $method, 'method' => $method,