DIR: /var/www/devs.lapieza.net/vendor/iyzico/iyzipay-php/src/Iyzipay/ |
Current File : /var/www/devs.lapieza.net/vendor/iyzico/iyzipay-php/src/Iyzipay/HashGenerator.php |
<?php namespace Iyzipay; class HashGenerator { public static function generateHash($apiKey, $secretKey, $randomString, $request) { $pKIRequestString = $request ? $request->toPKIRequestString() : ''; $hashStr = $apiKey . $randomString . $secretKey . $pKIRequestString; return base64_encode(sha1($hashStr, true)); } } |