Controller/OrderController.php
protected function getNextStep($success)
    {
        $nextStep = parent::_getNextStep($success);

        // Detecting PayPal & loading order & execute payment only if go wrong
        if ($this->isPayPal() && ($success == \OxidEsales\Eshop\Application\Model\Order::ORDER_STATE_PAYMENTERROR)) {
            $payPalType = (int) $this->getSession()->getVariable("oepaypal");
            $nextStep = ($payPalType == 2) ? "basket" : "order";
        }

        return $nextStep;
    }
protected function getNextStep($success)
    {
        $nextStep = parent::_getNextStep($success);

        // Detecting PayPal & loading order & execute payment only if go wrong
        if ($this->isPayPal() && ($success == \OxidEsales\Eshop\Application\Model\Order::ORDER_STATE_PAYMENTERROR)) {
            $payPalType = (int) $this->getSession()->getVariable("oepaypal");
            $nextStep = ($payPalType == 2) ? "basket" : "order";
        }

        return $nextStep;
    }
protected function getNextStep ( $ success ) { $ nextStep = parent :: _getNextStep ( $ success ) ; // Detecting PayPal & loading order & execute payment only if go wrong if ( $ this -> isPayPal ( ) && ( $ success == \ OxidEsales \ Eshop \ Application \ Model \ Order :: ORDER_STATE_PAYMENTERROR ) ) { $ payPalType = ( int ) $ this -> getSession ( ) -> getVariable ( "oepaypal" ) ; $ nextStep = ( $ payPalType == 2 ) ? "basket" : "order" ; } return $ nextStep ; }
Checks if order payment is PayPal and redirects to payment processing part.

@param int $success order state

@return string
Checks if order payment is PayPal and redirects to payment processing part .