Fix OTP verification success response payload and restore deterministic encryptData

This commit is contained in:
Hamza-Ayed
2026-06-24 23:11:20 +03:00
parent 2ee3a14c6d
commit cca16053da

View File

@@ -131,15 +131,15 @@ function sendNabehOtp(string $receiver, string $otp, string $method = '', string
// Strip symbols for Nabeh endpoint
$phoneRaw = preg_replace('/\D+/', '', $receiver);
// Map method/type (Image OTP is the default and only media method allowed)
$type = 'image';
if ($method === 'text') {
// Map method/type (Text OTP is the default now)
$type = 'text';
} elseif ($method === 'image') {
if ($method === 'image') {
$type = 'image';
} elseif ($method === 'text') {
$type = 'text';
} else {
// If no method specified or if 'voice' was requested, force default to 'image'
$type = 'image';
// If no method specified or if 'voice' was requested, force default to 'text'
$type = 'text';
}
$appName = 'سيرو رايدر';