Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay3/vendor/omnipay/netbanx/src/Message/HostedCaptureRequest.php
Ðазад
<?php namespace Omnipay\NetBanx\Message; class HostedCaptureRequest extends HostedAbstractRequest { /** * @return array */ public function getData() { $this->validate('amount', 'transactionReference', 'transactionId'); $data = parent::getBaseData(); $data['amount'] = $this->getAmountInteger(); $data['merchantRefNum'] = $this->getTransactionId(); return $data; } /** * @param mixed $data * * @return HostedCaptureResponse */ public function sendData($data) { $httpResponse = $this->sendRequest($this->getEndpointAction(), null, 'POST'); $responseData = json_decode($httpResponse->getBody()->getContents(), true); return $this->response = new HostedCaptureResponse($this, $responseData); } public function getEndpointAction() { return '/orders/'.$this->getTransactionReference().'/settlement'; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка