Update: 2026-06-23 18:19:33

This commit is contained in:
Hamza-Ayed
2026-06-23 18:19:33 +03:00
parent c859b8006b
commit f25066140f
2 changed files with 8 additions and 1 deletions

View File

@@ -198,7 +198,11 @@ function sendIntaleqOtp(string $receiver, string $otp, string $method = 'whatsap
if ($decoded && ($decoded['success'] ?? false)) {
return true;
}
error_log("❌ [Intaleq OTP] API returned failure response: " . $response);
$msg = "❌ [Intaleq OTP] API returned failure response: " . $response;
error_log($msg);
echo $msg; // Temporarily echo the raw error so we can see it in the app logs!
} else {
echo "❌ [Intaleq OTP] Empty response or cURL failed.";
}
return false;
}

View File

@@ -4,6 +4,9 @@
// ============================================================
require_once __DIR__ . '/core/bootstrap.php';
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
header('Content-Type: application/json');
header('Access-Control-Allow-Origin: https://siromove.com');