Compare commits
2
Commits
ebd6f3734a
...
0351bffafc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0351bffafc | ||
|
|
096f6a13a0 |
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user