Core/ViewConfig.php
public function getPayPalPayment()
    {
        if ($this->payPalPayment === null) {
            $this->payPalPayment = false;
            $payPalPayment = oxNew(\OxidEsales\Eshop\Application\Model\Payment::class);

            // payment is not available/active?
            if ($payPalPayment->load("oxidpaypal") && $payPalPayment->oxpayments__oxactive->value) {
                $this->payPalPayment = $payPalPayment;
            }
        }

        return $this->payPalPayment;
    }
public function getPayPalPayment()
    {
        if ($this->payPalPayment === null) {
            $this->payPalPayment = false;
            $payPalPayment = oxNew(\OxidEsales\Eshop\Application\Model\Payment::class);

            // payment is not available/active?
            if ($payPalPayment->load("oxidpaypal") && $payPalPayment->oxpayments__oxactive->value) {
                $this->payPalPayment = $payPalPayment;
            }
        }

        return $this->payPalPayment;
    }
public function getPayPalPayment ( ) { if ( $ this -> payPalPayment === null ) { $ this -> payPalPayment = false ; $ payPalPayment = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Payment :: class ) ; // payment is not available/active? if ( $ payPalPayment -> load ( "oxidpaypal" ) && $ payPalPayment -> oxpayments__oxactive -> value ) { $ this -> payPalPayment = $ payPalPayment ; } } return $ this -> payPalPayment ; }
Returns PayPal payment object.

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