Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay3/vendor/omnipay/sagepay/src/Message/SharedRefundRequest.php
Ðазад
<?php namespace Omnipay\SagePay\Message; /** * Sage Pay Shared Refund Request */ class SharedRefundRequest extends AbstractRequest { public function getTxType() { return static::TXTYPE_REFUND; } /** * @return array The message body data. */ public function getData() { $this->validate('amount', 'transactionReference'); $reference = json_decode($this->getTransactionReference(), true); $data = $this->getBaseData(); $data['Amount'] = $this->getAmount(); $data['Currency'] = $this->getCurrency(); $data['Description'] = $this->getDescription(); // Reference to the transaction to refund. $data['RelatedVendorTxCode'] = $reference['VendorTxCode']; $data['RelatedVPSTxId'] = $reference['VPSTxId']; $data['RelatedSecurityKey'] = $reference['SecurityKey']; $data['RelatedTxAuthNo'] = $reference['TxAuthNo']; // The VendorTxCode for THIS refund transaction (different from original) $data['VendorTxCode'] = $this->getTransactionId(); return $data; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка