Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay3/vendor/collizo4sky/omnipay-2checkout/src/Message/TokenPurchaseResponse.php
Ðазад
<?php namespace Omnipay\TwoCheckoutPlus\Message; use Omnipay\Common\Message\AbstractResponse; use Omnipay\Common\Message\ResponseInterface; /** * Response. */ class TokenPurchaseResponse extends AbstractResponse implements ResponseInterface { /** * {@inheritdoc} * * @return bool */ public function isSuccessful() { $responseCode = $this->data['response']['responseCode']; return isset($responseCode) ? $responseCode == 'APPROVED' : false; } /** * {@inheritdoc} * * @return bool */ public function isRedirect() { return false; } /** * {@inheritdoc} * * @return int|null */ public function getCode() { return isset($this->data['exception']) ? $this->data['exception']['errorCode'] : null; } /** * {@inheritdoc} */ public function getMessage() { return isset($this->data['exception']) ? $this->data['exception']['errorMsg'] : null; } /** * {@inheritdoc} */ public function getTransactionReference() { return isset($this->data['response']['orderNumber']) ? $this->data['response']['orderNumber'] : null; } /** * {@inheritdoc} */ public function getTransactionId() { return isset($this->data['response']['merchantOrderId']) ? $this->data['response']['merchantOrderId'] : null; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка