Fixed SQL query columns and switched Wallet token to secret_key_pay

This commit is contained in:
Hamza-Ayed
2026-04-28 13:39:50 +03:00
parent 79046da4be
commit 1005bc11b8
2 changed files with 8 additions and 6 deletions

View File

@@ -77,7 +77,9 @@ try {
'jti' => bin2hex(random_bytes(16)),
];
$secretKey = trim(file_get_contents('/home/intaleq-api/.secret_key'));
$secretKey = file_exists('/home/intaleq-api/.secret_key_pay')
? trim(file_get_contents('/home/intaleq-api/.secret_key_pay'))
: trim(file_get_contents('/home/intaleq-api/.secret_key'));
$jwt = Firebase\JWT\JWT::encode($payload, $secretKey, 'HS256');
$hmac = hash_hmac('sha256', $id, getenv('SECRET_KEY_HMAC'));