for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* OKPAY driver for Omnipay PHP payment library.
*
* @link https://github.com/hiqdev/omnipay-okpay
* @package omnipay-okpay
* @license MIT
* @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
*/
namespace Omnipay\OKPAY\Message;
use Omnipay\Common\Message\AbstractResponse;
use Omnipay\Common\Message\RequestInterface;
class RefundResponse extends AbstractResponse
{
protected $redirectUrl;
protected $message;
protected $success;
public function __construct(RequestInterface $request, $data)
$this->request = $request;
$this->data = $data;
$this->success = false;
$this->parseResponse($data);
}
public function isSuccessful()
return $this->success;
public function getMessage()
return $this->message;
private function parseResponse($data)
if ($data->Status !== 'Completed') {
$this->message = $data->Status;
return false;
$this->success = true;