This repository has been archived on 2017-06-06. You can view files and clone it, but cannot push or open issues or pull requests.
2017-02-19 10:19:42 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Omnipay\Inforbank\Message;
|
|
|
|
|
|
|
|
use Omnipay\Common\Message\RedirectResponseInterface;
|
|
|
|
|
|
|
|
class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface
|
|
|
|
{
|
|
|
|
public function isSuccessful()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function isRedirect()
|
|
|
|
{
|
2017-02-19 11:02:56 +00:00
|
|
|
return is_null($this->getError());
|
2017-02-19 10:19:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function isPending()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getRedirectUrl()
|
|
|
|
{
|
2017-02-19 11:24:32 +00:00
|
|
|
return $this->data['redirect'];
|
2017-02-19 10:19:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getRedirectMethod()
|
|
|
|
{
|
|
|
|
return 'GET';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getRedirectData()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|