for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Omnipay\Payline\Message;
/**
* AbstractResponse
*/
abstract class AbstractResponse extends \Omnipay\Common\Message\AbstractResponse
{
public function isSuccessful()
return $this->getCode() === '00000';
}
public function getCode()
if (isset($this->data->result->code)) {
return $this->data->result->code;
public function getMessage()
if (isset($this->data->result->shortMessage)) {
return $this->data->result->shortMessage;
public function getLongMessage()
if (isset($this->data->result->longMessage)) {
return $this->data->result->longMessage;
public function getToken()
if (isset($this->data->token)) {
return $this->data->token;