source/Application/Controller/PaymentController.php
protected function _unsetPaymentErrors()
    {
        $iPayError = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('payerror');
        $sPayErrorText = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('payerrortext');

        if (!($iPayError || $sPayErrorText)) {
            $iPayError = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('payerror');
            $sPayErrorText = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('payerrortext');
        }

        if ($iPayError) {
            \OxidEsales\Eshop\Core\Registry::getSession()->deleteVariable('payerror');
            $this->_sPaymentError = $iPayError;
        }
        if ($sPayErrorText) {
            \OxidEsales\Eshop\Core\Registry::getSession()->deleteVariable('payerrortext');
            $this->_sPaymentErrorText = $sPayErrorText;
        }
    }
protected function _unsetPaymentErrors()
    {
        $iPayError = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('payerror');
        $sPayErrorText = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('payerrortext');

        if (!($iPayError || $sPayErrorText)) {
            $iPayError = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('payerror');
            $sPayErrorText = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('payerrortext');
        }

        if ($iPayError) {
            \OxidEsales\Eshop\Core\Registry::getSession()->deleteVariable('payerror');
            $this->_sPaymentError = $iPayError;
        }
        if ($sPayErrorText) {
            \OxidEsales\Eshop\Core\Registry::getSession()->deleteVariable('payerrortext');
            $this->_sPaymentErrorText = $sPayErrorText;
        }
    }
protected function _unsetPaymentErrors ( ) { $ iPayError = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'payerror' ) ; $ sPayErrorText = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'payerrortext' ) ; if ( ! ( $ iPayError || $ sPayErrorText ) ) { $ iPayError = \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> getVariable ( 'payerror' ) ; $ sPayErrorText = \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> getVariable ( 'payerrortext' ) ; } if ( $ iPayError ) { \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> deleteVariable ( 'payerror' ) ; $ this -> _sPaymentError = $ iPayError ; } if ( $ sPayErrorText ) { \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> deleteVariable ( 'payerrortext' ) ; $ this -> _sPaymentErrorText = $ sPayErrorText ; } }
Unsets payment errors from session
Unsets payment errors from session