Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay3/vendor/omnipay/pin/src/Message/Response.php
Ðазад
<?php /** * Pin Response */ namespace Omnipay\Pin\Message; use Omnipay\Common\Message\AbstractResponse; use Omnipay\Common\Message\RequestInterface; /** * Pin Response * * This is the response class for all Pin REST requests. * * @see \Omnipay\Pin\Gateway */ class Response extends AbstractResponse { public function __construct(RequestInterface $request, $data, $decode = true) { parent::__construct($request, $data); if ($decode) { $this->data = json_decode($data, true); } } public function isSuccessful() { return !isset($this->data['error']); } public function getTransactionReference() { if (isset($this->data['response']['token'])) { return $this->data['response']['token']; } } /** * Get Card Reference * * This is used after createCard to get the credit card token to be * used in future transactions. * * @return string */ public function getCardReference() { if (isset($this->data['response']['token'])) { return $this->data['response']['token']; } } /** * @deprecated */ public function getCardToken() { return $this->getCardReference(); } /** * Get Customer Reference * * This is used after createCustomer to get the customer token to be * used in future transactions. * * @return string */ public function getCustomerReference() { if (isset($this->data['response']['token'])) { return $this->data['response']['token']; } } /** * @deprecated */ public function getCustomerToken() { return $this->getCustomerReference(); } public function getMessage() { if ($this->isSuccessful()) { if (isset($this->data['response']['status_message'])) { return $this->data['response']['status_message']; } else { return true; } } else { return $this->data['error_description']; } } public function getCode() { if (isset($this->data['error'])) { return $this->data['error']; } } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка