Controller/Dispatcher.php
protected function getPayPalPayment()
    {
        $userPayment = null;

        if (($order = $this->getPayPalOrder())) {
            $userPayment = oxNew(\OxidEsales\Eshop\Application\Model\UserPayment::class);
            $userPayment->load($order->oxorder__oxpaymentid->value);
        }

        return $userPayment;
    }
protected function getPayPalPayment()
    {
        $userPayment = null;

        if (($order = $this->getPayPalOrder())) {
            $userPayment = oxNew(\OxidEsales\Eshop\Application\Model\UserPayment::class);
            $userPayment->load($order->oxorder__oxpaymentid->value);
        }

        return $userPayment;
    }
protected function getPayPalPayment ( ) { $ userPayment = null ; if ( ( $ order = $ this -> getPayPalOrder ( ) ) ) { $ userPayment = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ UserPayment :: class ) ; $ userPayment -> load ( $ order -> oxorder__oxpaymentid -> value ) ; } return $ userPayment ; }
Returns PayPal payment object

@return \OxidEsales\Eshop\Application\Model\Payment|null
Returns PayPal payment object