Your IP : 216.73.216.182


Current Path : /var/www/html/libraries/omnipay3/vendor/swisnl/omnipay-redsys/src/Message/
Upload File :
Current File : /var/www/html/libraries/omnipay3/vendor/swisnl/omnipay-redsys/src/Message/PurchaseResponse.php

<?php

namespace Omnipay\RedSys\Message;

use Omnipay\Common\Message\AbstractResponse;
use Omnipay\Common\Message\RedirectResponseInterface;

/**
 * RedSys Purchase Response
 */
class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface
{
    public function isSuccessful()
    {
        return false;
    }

    public function isRedirect()
    {
        return true;
    }

    public function getRedirectUrl()
    {
        return $this->getRequest()->getEndpoint();
    }

    public function getRedirectMethod()
    {
        return 'POST';
    }

    public function getRedirectData()
    {
        return $this->getData();
    }
}