Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay/vendor/xown/omnipay-epay/src/Message/CaptureRequest.php
Ðазад
<?php namespace Omnipay\Epay\Message; use Omnipay\Common\Message\ResponseInterface; /** * Epay Capture Request */ class CaptureRequest extends PurchaseRequest { protected $endpoint = 'https://ssl.ditonlinebetalingssystem.dk/remote/payment.asmx'; public function getSupportedKeys() { return ['merchantnumber', 'amount', 'transactionid', 'group']; } public function setTransactionId($value) { return $this->setParameter('transactionid', $value); } public function getData() { $this->validate('merchantnumber', 'amount', 'transactionid'); $data = array(); foreach($this->getSupportedKeys() as $key) { $value = $this->parameters->get($key); if (!empty($value)) { $data[$key] = $value; } } /** Hack from SOAP description */ $data['pbsResponse'] = -1; $data['epayresponse'] = -1; return $data; } /** * @param mixed $data * @return CaptureResponse */ public function sendData($data) { $client = new \SoapClient($this->endpoint.'?WSDL'); $result = $client->capture($data); return $this->response = new CaptureResponse($this, array( 'captureResult' => $result->captureResult, 'pbsResponse' => $result->pbsResponse, 'epayresponse' => $result->epayresponse, )); } /** * Send the request * * @return ResponseInterface */ public function send() { return $this->sendData($this->getData()); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка