Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay/vendor/xown/omnipay-epay/src/Message/CompletePurchaseRequest.php
Ðазад
<?php namespace Omnipay\Epay\Message; use Omnipay\Common\Exception\InvalidResponseException; use Omnipay\Common\Message\ResponseInterface; /** * Epay Complete Purchase Request */ class CompletePurchaseRequest extends PurchaseRequest { public function getData() { if($this->getParameter('secret') && !$this->verifyHash($this->httpRequest->query->all())) { throw new InvalidResponseException('Invalid key'); } return $this->httpRequest->query->all(); } public function verifyHash($data) { $var = ''; foreach ($data as $key => $value) { if($key != "hash") { $var .= $value; } } $genstamp = md5($var . $this->getParameter('secret')); return isset($data['hash']) && $genstamp == $data['hash']; } public function sendData($data) { return $this->response = new CompletePurchaseResponse($this, $data); } /** * Send the request * * @return ResponseInterface */ public function send() { return $this->sendData($this->getData()); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка