Added base plugin, in preperation for the API
This commit is contained in:
19
src/Message/AbstractResponse.php
Normal file
19
src/Message/AbstractResponse.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Omnipay\Inforbank\Message;
|
||||
|
||||
use Omnipay\Common\Message\AbstractResponse as BaseAbstractResponse;
|
||||
use Omnipay\Common\Message\RequestInterface;
|
||||
|
||||
abstract class AbstractResponse extends BaseAbstractResponse
|
||||
{
|
||||
protected $error;
|
||||
|
||||
public function __construct(RequestInterface $request, $data)
|
||||
{
|
||||
parent::__construct($request, $data);
|
||||
if (!$this->data->success) {
|
||||
$this->error = (string) $this->data->error;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user