for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Omnipay\Emp\Message;
use Omnipay\Common\Message\AbstractResponse;
use Omnipay\Common\Message\RequestInterface;
/**
* @author Ivan Kerin <[email protected]>
* @copyright 2014, Clippings Ltd.
* @license http://spdx.org/licenses/BSD-3-Clause
*/
class RefundResponse extends AbstractResponse
{
* @return boolean
public function isSuccessful()
return ($this->getResponse() === 'A');
}
* @return string|null
public function getTransactionReference()
if (isset($this->data['trans_id'])) {
return $this->data['trans_id'];
public function getResponse()
if (isset($this->data['response'])) {
return $this->data['response'];
public function getCode()
if (isset($this->data['responsecode'])) {
return $this->data['responsecode'];
public function getMessage()
if (isset($this->data['responsetext'])) {
return $this->data['responsetext'];