Model/PayPalOrder.php
public function getPaymentList()
    {
        if (is_null($this->paymentList)) {
            $paymentList = oxNew(\OxidEsales\PayPalModule\Model\OrderPaymentList::class);
            $paymentList->load($this->getOrderId());
            $this->setPaymentList($paymentList);
        }

        return $this->paymentList;
    }
public function getPaymentList()
    {
        if (is_null($this->paymentList)) {
            $paymentList = oxNew(\OxidEsales\PayPalModule\Model\OrderPaymentList::class);
            $paymentList->load($this->getOrderId());
            $this->setPaymentList($paymentList);
        }

        return $this->paymentList;
    }
public function getPaymentList ( ) { if ( is_null ( $ this -> paymentList ) ) { $ paymentList = oxNew ( \ OxidEsales \ PayPalModule \ Model \ OrderPaymentList :: class ) ; $ paymentList -> load ( $ this -> getOrderId ( ) ) ; $ this -> setPaymentList ( $ paymentList ) ; } return $ this -> paymentList ; }
Return order payment list.

@return \OxidEsales\PayPalModule\Model\OrderPaymentList
Return order payment list .