Compare commits

2 Commits
Author SHA1 Message Date
Hamza-Ayed 0351bffafc Update: 2026-07-21 19:19:15 2026-07-21 19:19:15 +03:00
Hamza-Ayed 096f6a13a0 Update: 2026-07-21 19:15:57 2026-07-21 19:15:57 +03:00
+2 -10
View File
@@ -139,16 +139,8 @@ function sendNabehOtp(string $receiver, string $otp, string $method = '', string
// Strip symbols for Nabeh endpoint
$phoneRaw = preg_replace('/\D+/', '', $receiver);
// Map method/type (Text OTP is the default now)
$type = 'image';
if ($method === 'image') {
$type = 'image';
} elseif ($method === 'text') {
$type = 'text';
} else {
// If no method specified or if 'voice' was requested, force default to 'text'
$type = 'image';
}
// Map method/type (Image OTP card is default for Nabeh)
$type = ($method === 'text') ? 'text' : (($method === 'voice') ? 'voice' : 'image');
$appName = 'سيرو رايدر';
if ($user_type === 'driver') {