Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay3/vendor/omnipay/netaxept/src/Message/CreditRequest.php
Ðазад
<?php namespace Omnipay\Netaxept\Message; use Omnipay\Common\Exception\InvalidResponseException; use Omnipay\Common\Message\AbstractRequest; /** * Netaxept Credit Request * * @author Antonio Peric-Mazar <antonio@locastic.com> */ class CreditRequest extends PurchaseRequest { public function getData() { $data = array(); $data['transactionAmount'] = $this->getAmountInteger(); $data['transactionId'] = $this->getTransactionId(); $data['merchantId'] = $this->getMerchantId(); $data['token'] = $this->getPassword(); $data['operation'] = 'CREDIT'; if (empty($data['transactionAmount']) || empty($data['transactionId'])) { throw new InvalidResponseException; } return $data; } public function sendData($data) { $url = $this->getEndpoint().'/Netaxept/Process.aspx?'; $httpResponse = $this->httpClient->request('GET', $url.http_build_query($data)); return $this->response = new Response($this, simplexml_load_string($httpResponse->getBody()->getContents())); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка