Model/PayPalRequest/DoExpressCheckoutPaymentRequestBuilder.php
public function getOrder()
    {
        if (is_null($this->order)) {
            /** @var \OxidEsales\PayPalModule\Core\Exception\PayPalResponseException $exception */
            $exception = oxNew(\OxidEsales\PayPalModule\Core\Exception\PayPalResponseException::class, 'OEPAYPAL_ORDER_ERROR');
            throw $exception;
        }

        return $this->order;
    }
public function getOrder()
    {
        if (is_null($this->order)) {
            /** @var \OxidEsales\PayPalModule\Core\Exception\PayPalResponseException $exception */
            $exception = oxNew(\OxidEsales\PayPalModule\Core\Exception\PayPalResponseException::class, 'OEPAYPAL_ORDER_ERROR');
            throw $exception;
        }

        return $this->order;
    }
public function getOrder ( ) { if ( is_null ( $ this -> order ) ) { /** @var \OxidEsales\PayPalModule\Core\Exception\PayPalResponseException $exception */ $ exception = oxNew ( \ OxidEsales \ PayPalModule \ Core \ Exception \ PayPalResponseException :: class , 'OEPAYPAL_ORDER_ERROR' ) ; throw $ exception ; } return $ this -> order ; }
Tries to return basket object, but if fails throws exception.

@return \OxidEsales\Eshop\Application\Model\Order

@throws \OxidEsales\PayPalModule\Core\Exception\PayPalResponseException
Tries to return basket object but if fails throws exception .