Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay3/vendor/omnipay/eway/src/Message/RapidDirectVoidRequest.php
Ðазад
<?php /** * eWAY Rapid Void Request */ namespace Omnipay\Eway\Message; class RapidDirectVoidRequest extends AbstractRequest { public function getData() { $this->validate('transactionReference'); $data = []; $data['TransactionId'] = $this->getTransactionReference(); return $data; } protected function getEndpoint() { return $this->getEndpointBase() . '/CancelAuthorisation'; } public function sendData($data) { $headers = [ 'Authorization' => 'Basic ' . base64_encode($this->getApiKey() . ':' . $this->getPassword()), 'content-type' => 'application/json', ]; $httpResponse = $this->httpClient->request('POST', $this->getEndpoint(), $headers, json_encode($data)); return $this->response = new RapidResponse($this, json_decode((string) $httpResponse->getBody(), true)); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка