Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay/vendor/omnipay/tpay/src/Message/CompletePurchaseRequest.php
Ðазад
<?php namespace Omnipay\Tpay\Message; use Omnipay\Tpay\_class_tpay\Notifications\CardNotificationHandler; /** * Tpay Complete Purchase Request */ class CompletePurchaseRequest extends AbstractRequest { public function getData() { $this->validate('amount', 'currency'); $tpayHandler = new CardNotificationHandler($this->getApiKey(), $this->getApiPassword(), $this->getVerificationCode(), $this->getHashType()); $localResources['amount'] = $this->getAmount(); $tpayHandler->setAmount((float)$this->getAmount()); $localResources['currency'] = $this->getCurrencyNumeric(); $tpayHandler->setCurrency($this->getCurrencyNumeric()); if (!is_null($this->getOrderId())) { $localResources['order_id'] = $this->getOrderId(); $tpayHandler->setOrderID($this->getOrderId()); } $tpayResources = $tpayHandler->handleNotification(); $tpayHandler->validateCardSign($tpayResources['sign'], $tpayResources['sale_auth'], $tpayResources['card'], $tpayResources['date'], 'correct', isset($tpayResources['test_mode']) ? $tpayResources['test_mode'] : ''); return $tpayResources; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка