1
0

Added base plugin, in preperation for the API

This commit is contained in:
2017-02-19 11:19:42 +01:00
parent 64d7fa13d7
commit 3e0d67caca
8 changed files with 181 additions and 7 deletions

View 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;
}
}
}