Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay/vendor/omnipay/netaxept/src/Message/CompletePurchaseRequest.php
Ðазад
<?php namespace Omnipay\Netaxept\Message; use Omnipay\Common\Exception\InvalidResponseException; /** * Netaxept Complete Purchase Request */ class CompletePurchaseRequest extends PurchaseRequest { public function getData() { $data = array(); $data['responseCode'] = $this->httpRequest->query->get('responseCode'); $data['transactionId'] = $this->httpRequest->query->get('transactionId'); $data['merchantId'] = $this->getMerchantId(); $data['token'] = $this->getPassword(); $data['operation'] = 'AUTH'; if (empty($data['responseCode']) || empty($data['transactionId'])) { throw new InvalidResponseException; } return $data; } public function sendData($data) { if ('OK' !== $data['responseCode']) { return $this->response = new ErrorResponse($this, $data); } $url = $this->getEndpoint().'/Netaxept/Process.aspx?'; $httpResponse = $this->httpClient->get($url.http_build_query($data))->send(); return $this->response = new Response($this, $httpResponse->xml()); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка