Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay3/vendor/omnipay/sagepay/src/Message/Form/Response.php
Ðазад
<?php namespace Omnipay\SagePay\Message\Form; /** * Sage Pay Form Authorize/Purchase Response (form POST redirect). */ use Omnipay\Common\Message\AbstractResponse; use Omnipay\Common\Message\RedirectResponseInterface; use Omnipay\SagePay\ConstantsInterface; class Response extends AbstractResponse implements RedirectResponseInterface, ConstantsInterface { /** * @var string Endpoint base URLs. */ protected $liveEndpoint = 'https://live.sagepay.com/gateway/service/vspform-register.vsp'; protected $testEndpoint = 'https://test.sagepay.com/gateway/service/vspform-register.vsp'; /** * Always a redirect, so not yet successful. * @return @inherit */ public function isSuccessful() { return false; } /** * @return @inherit */ public function isRedirect() { return true; } /** * @return @inherit */ public function getRedirectMethod() { return 'POST'; } /** * @return @inherit */ public function getRedirectData() { // Pull out just these four fields from the data supplied. return array_intersect_key( $this->getData(), array_flip([ 'VPSProtocol', 'TxType', 'Vendor', 'Crypt', ]) ); } /** * @return string URL to 3D Secure endpoint. */ public function getRedirectUrl() { if ($this->getTestMode()) { return $this->testEndpoint; } return $this->liveEndpoint; } /** * @return @inherit */ public function getTestMode() { $data = $this->getData(); return !empty($data['TestMode']); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка