����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 3.134.81.178 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/bofirm.gltechlimited.com/vendor/iyzico/iyzipay-php/src/Iyzipay/ |
Upload File : |
<?php namespace Iyzipay; class IyzipayResource extends ApiResource { private $status; private $errorCode; private $errorMessage; private $errorGroup; private $locale; private $systemTime; private $conversationId; protected static function getHttpHeaders(Request $request, Options $options) { $header = array( "Accept: application/json", "Content-type: application/json", ); $rnd = uniqid(); array_push($header, "Authorization: " . self::prepareAuthorizationString($request, $options, $rnd)); array_push($header, "x-iyzi-rnd: " . $rnd); array_push($header, "x-iyzi-client-version: " . "iyzipay-php-2.0.54"); return $header; } protected static function getHttpHeadersV2($uri, Request $request = null, Options $options) { $header = array( "Accept: application/json", "Content-type: application/json", ); $rnd = uniqid(); array_push($header, "Authorization: " . self::prepareAuthorizationStringV2($uri, $request, $options, $rnd)); array_push($header, "x-iyzi-client-version: " . "iyzipay-php-2.0.43"); return $header; } protected static function prepareAuthorizationString(Request $request, Options $options, $rnd) { $authContent = HashGenerator::generateHash($options->getApiKey(), $options->getSecretKey(), $rnd, $request); return vsprintf("IYZWS %s:%s", array($options->getApiKey(), $authContent)); } protected static function prepareAuthorizationStringV2($uri, Request $request = null, Options $options, $rnd) { $hash = IyziAuthV2Generator::generateAuthContent($uri, $options->getApiKey(), $options->getSecretKey(), $rnd, $request); return 'IYZWSv2'.' '.$hash; } public function getStatus() { return $this->status; } public function setStatus($status) { $this->status = $status; } public function getErrorCode() { return $this->errorCode; } public function setErrorCode($errorCode) { $this->errorCode = $errorCode; } public function getErrorMessage() { return $this->errorMessage; } public function setErrorMessage($errorMessage) { $this->errorMessage = $errorMessage; } public function getErrorGroup() { return $this->errorGroup; } public function setErrorGroup($errorGroup) { $this->errorGroup = $errorGroup; } public function getLocale() { return $this->locale; } public function setLocale($locale) { $this->locale = $locale; } public function getSystemTime() { return $this->systemTime; } public function setSystemTime($systemTime) { $this->systemTime = $systemTime; } public function getConversationId() { return $this->conversationId; } public function setConversationId($conversationId) { $this->conversationId = $conversationId; } }