controllers/oxpspaymorrowpayment.php
protected function _isPaymentResponseSessionInvalid()
    {
        /** @var OxpsPaymorrowModule $oModule */
        $oModule = oxRegistry::get('OxpsPaymorrowModule');

        // Get Paymorrow response from session
        $aPaymorrowResponse = $oModule->getPaymorrowResponseData();

        // The response must exist and be valid
        return (
            !isset($aPaymorrowResponse['order_status'], $aPaymorrowResponse['response_status']) or
            !in_array($aPaymorrowResponse['order_status'], array('VALIDATED', 'ACCEPTED')) or
            ($aPaymorrowResponse['response_status'] !== 'OK')
        );
    }
protected function _isPaymentResponseSessionInvalid()
    {
        /** @var OxpsPaymorrowModule $oModule */
        $oModule = oxRegistry::get('OxpsPaymorrowModule');

        // Get Paymorrow response from session
        $aPaymorrowResponse = $oModule->getPaymorrowResponseData();

        // The response must exist and be valid
        return (
            !isset($aPaymorrowResponse['order_status'], $aPaymorrowResponse['response_status']) or
            !in_array($aPaymorrowResponse['order_status'], array('VALIDATED', 'ACCEPTED')) or
            ($aPaymorrowResponse['response_status'] !== 'OK')
        );
    }
protected function _isPaymentResponseSessionInvalid ( ) { /** @var OxpsPaymorrowModule $oModule */ $ oModule = oxRegistry :: get ( 'OxpsPaymorrowModule' ) ; // Get Paymorrow response from session $ aPaymorrowResponse = $ oModule -> getPaymorrowResponseData ( ) ; // The response must exist and be valid return ( ! isset ( $ aPaymorrowResponse [ 'order_status' ] , $ aPaymorrowResponse [ 'response_status' ] ) or ! in_array ( $ aPaymorrowResponse [ 'order_status' ] , array ( 'VALIDATED' , 'ACCEPTED' ) ) or ( $ aPaymorrowResponse [ 'response_status' ] !== 'OK' ) ) ; }
Check payment response in session fot errors.

@return bool True is response is invalid, false otherwise.
Check payment response in session fot errors .