Update: 2026-06-23 18:21:54
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user