Model/PaymentValidator.php
public function getPayment()
    {
        if (is_null($this->payment)) {
            $payPalPayment = oxNew(\OxidEsales\Eshop\Application\Model\Payment::class);
            $payPalPayment->load('oxidpaypal');
            $this->setPayment($payPalPayment);
        }

        return $this->payment;
    }
public function getPayment()
    {
        if (is_null($this->payment)) {
            $payPalPayment = oxNew(\OxidEsales\Eshop\Application\Model\Payment::class);
            $payPalPayment->load('oxidpaypal');
            $this->setPayment($payPalPayment);
        }

        return $this->payment;
    }
public function getPayment ( ) { if ( is_null ( $ this -> payment ) ) { $ payPalPayment = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Payment :: class ) ; $ payPalPayment -> load ( 'oxidpaypal' ) ; $ this -> setPayment ( $ payPalPayment ) ; } return $ this -> payment ; }
Payment object getter

@return \OxidEsales\Eshop\Application\Model\Payment
Payment object getter