controllers/oxpspaymorroworder.php
protected function _getNextStep( $iSuccess )
    {
        /** @var OxpsPaymorrowResponseHandler $oPmResponseHandler */
        $oPmResponseHandler = oxRegistry::get( 'OxpsPaymorrowResponseHandler' );

        /**
         * If after validating confirmOrder against Paymorrow services there are errors,
         * return to order step and render error message
         */
        if ( $oPmResponseHandler->hasErrors() ) {
            $iErrorCode = $oPmResponseHandler->getErrorCode();

            /** @var OxpsPaymorrowErrorHandler $oPmErrorHandler */
            $oPmErrorHandler = oxNew( 'OxpsPaymorrowErrorHandler' );

            $oPmErrorHandler->redirectWithError( $iErrorCode );
        }

        /**
         * At this step assuming everything went fine
         * we need to delete SESSION variables created by Paymorrow
         * to avoid any incompatibilities if user has decided to
         * order again
         *
         * @doc: oxid_js_plugin.doc - 7.1 Controlling of customer’s browser session storage
         *
         * sess_challenge is deleted by `ThankYou` controller
         */
        $oSession = oxRegistry::getSession();
        $oSession->deleteVariable('pm_verify');
        $oSession->deleteVariable('pm_response');
        $oSession->deleteVariable('pm_responseINVOICE');
        $oSession->deleteVariable('pm_responseSDD');
        $oSession->deleteVariable('pm_order_transaction_id');
        $oSession->deleteVariable('pm_order_transaction_idINVOICE');
        $oSession->deleteVariable('pm_order_transaction_idSDD');

        // Set payment method error instead of shipping method error
        if ( $iSuccess == 4 ) {
            $iSuccess = 5;
        }

        return $this->_OxpsPaymorrowOrder_getNextStep_parent( $iSuccess );
    }
protected function _getNextStep( $iSuccess )
    {
        /** @var OxpsPaymorrowResponseHandler $oPmResponseHandler */
        $oPmResponseHandler = oxRegistry::get( 'OxpsPaymorrowResponseHandler' );

        /**
         * If after validating confirmOrder against Paymorrow services there are errors,
         * return to order step and render error message
         */
        if ( $oPmResponseHandler->hasErrors() ) {
            $iErrorCode = $oPmResponseHandler->getErrorCode();

            /** @var OxpsPaymorrowErrorHandler $oPmErrorHandler */
            $oPmErrorHandler = oxNew( 'OxpsPaymorrowErrorHandler' );

            $oPmErrorHandler->redirectWithError( $iErrorCode );
        }

        /**
         * At this step assuming everything went fine
         * we need to delete SESSION variables created by Paymorrow
         * to avoid any incompatibilities if user has decided to
         * order again
         *
         * @doc: oxid_js_plugin.doc - 7.1 Controlling of customer’s browser session storage
         *
         * sess_challenge is deleted by `ThankYou` controller
         */
        $oSession = oxRegistry::getSession();
        $oSession->deleteVariable('pm_verify');
        $oSession->deleteVariable('pm_response');
        $oSession->deleteVariable('pm_responseINVOICE');
        $oSession->deleteVariable('pm_responseSDD');
        $oSession->deleteVariable('pm_order_transaction_id');
        $oSession->deleteVariable('pm_order_transaction_idINVOICE');
        $oSession->deleteVariable('pm_order_transaction_idSDD');

        // Set payment method error instead of shipping method error
        if ( $iSuccess == 4 ) {
            $iSuccess = 5;
        }

        return $this->_OxpsPaymorrowOrder_getNextStep_parent( $iSuccess );
    }
protected function _getNextStep ( $ iSuccess ) { /** @var OxpsPaymorrowResponseHandler $oPmResponseHandler */ $ oPmResponseHandler = oxRegistry :: get ( 'OxpsPaymorrowResponseHandler' ) ; /**
         * If after validating confirmOrder against Paymorrow services there are errors,
         * return to order step and render error message
         */ if ( $ oPmResponseHandler -> hasErrors ( ) ) { $ iErrorCode = $ oPmResponseHandler -> getErrorCode ( ) ; /** @var OxpsPaymorrowErrorHandler $oPmErrorHandler */ $ oPmErrorHandler = oxNew ( 'OxpsPaymorrowErrorHandler' ) ; $ oPmErrorHandler -> redirectWithError ( $ iErrorCode ) ; } /**
         * At this step assuming everything went fine
         * we need to delete SESSION variables created by Paymorrow
         * to avoid any incompatibilities if user has decided to
         * order again
         *
         * @doc: oxid_js_plugin.doc - 7.1 Controlling of customer’s browser session storage
         *
         * sess_challenge is deleted by `ThankYou` controller
         */ $ oSession = oxRegistry :: getSession ( ) ; $ oSession -> deleteVariable ( 'pm_verify' ) ; $ oSession -> deleteVariable ( 'pm_response' ) ; $ oSession -> deleteVariable ( 'pm_responseINVOICE' ) ; $ oSession -> deleteVariable ( 'pm_responseSDD' ) ; $ oSession -> deleteVariable ( 'pm_order_transaction_id' ) ; $ oSession -> deleteVariable ( 'pm_order_transaction_idINVOICE' ) ; $ oSession -> deleteVariable ( 'pm_order_transaction_idSDD' ) ; // Set payment method error instead of shipping method error if ( $ iSuccess == 4 ) { $ iSuccess = 5 ; } return $ this -> _OxpsPaymorrowOrder_getNextStep_parent ( $ iSuccess ) ; }
Overridden for Paymorrow Services validation

@param $iSuccess

@return string
Overridden for Paymorrow Services validation