This commit is contained in:
baodev0
2026-09-23 15:17:18 +07:00
parent cd38c5d6d0
commit 82a71244ca
107 changed files with 3332 additions and 3306 deletions
@@ -41,15 +41,6 @@ class RenewServiceTest extends TestCase
}
/** Encrypts the shared secret the same way ClientAccessTokenCheck expects, for test requests. */
private function buildClientAccessToken(): string
{
$key = hex2bin((string) config('services.client_api.key'));
$secret = (string) config('services.client_api.secret');
$iv = random_bytes(16);
$ciphertext = openssl_encrypt($secret, 'aes-256-cbc', $key, OPENSSL_RAW_DATA, $iv);
return base64_encode($iv . $ciphertext);
}
private function createServiceWithOldPrice(int $oldPrice): Service
{