Omnipay\WechatPay\Message\BaseAbstractResponse::isSuccessful PHP Method

isSuccessful() public method

Is the response successful?
public isSuccessful ( ) : boolean
return boolean
    public function isSuccessful()
    {
        $data = $this->getData();
        return isset($data['return_code']) && $data['return_code'] == 'SUCCESS';
    }
BaseAbstractResponse