for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Omnipay\Paysera\Message;
use Omnipay\Common\Message\AbstractResponse;
use Omnipay\Common\Message\RedirectResponseInterface;
class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface
{
/**
* Get the API endpoint.
*
* @return string
*/
protected function getEndpoint()
return 'https://www.paysera.com/pay/';
}
* {@inheritdoc}
public function getRedirectUrl()
return $this->getEndpoint();
public function isSuccessful()
return false;
public function isRedirect()
return true;
public function getRedirectMethod()
return 'POST';
public function getRedirectData()
return $this->getData();