Update: 2026-06-24 16:18:03

This commit is contained in:
Hamza-Ayed
2026-06-24 16:18:03 +03:00
parent dfeea2d95a
commit 2e4bf784ec

View File

@@ -99,12 +99,12 @@ switch (strtolower($country)) {
case 'syria':
// Syria uses Nabeh
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method, $user_type);
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method ?? '', $user_type ?? 'passenger');
break;
case 'jordan':
// Jordan uses Nabeh
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method, $user_type);
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method ?? '', $user_type ?? 'passenger');
break;
default:
@@ -112,7 +112,7 @@ switch (strtolower($country)) {
$sentSuccessfully = sendKazumiSms($receiver, $otp);
if (!$sentSuccessfully) {
error_log("⚠️ [Default OTP Failover] Kazumi SMS failed. Falling back to Nabeh OTP.");
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method, $user_type);
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method ?? '', $user_type ?? 'passenger');
}
break;
}