Controller/ExpressCheckoutDispatcher.php
protected function isPayPalInDeliverySet($delSetId, $basketPrice, $user)
    {
        $paymentList = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\PaymentList::class);
        $paymentList = $paymentList->getPaymentList($delSetId, $basketPrice, $user);

        if (is_array($paymentList) && array_key_exists("oxidpaypal", $paymentList)) {
            return true;
        }

        return false;
    }
protected function isPayPalInDeliverySet($delSetId, $basketPrice, $user)
    {
        $paymentList = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\PaymentList::class);
        $paymentList = $paymentList->getPaymentList($delSetId, $basketPrice, $user);

        if (is_array($paymentList) && array_key_exists("oxidpaypal", $paymentList)) {
            return true;
        }

        return false;
    }
protected function isPayPalInDeliverySet ( $ delSetId , $ basketPrice , $ user ) { $ paymentList = \ OxidEsales \ Eshop \ Core \ Registry :: get ( \ OxidEsales \ Eshop \ Application \ Model \ PaymentList :: class ) ; $ paymentList = $ paymentList -> getPaymentList ( $ delSetId , $ basketPrice , $ user ) ; if ( is_array ( $ paymentList ) && array_key_exists ( "oxidpaypal" , $ paymentList ) ) { return true ; } return false ; }
Checks if selected delivery set has PayPal payment.

@param string                                   $delSetId    Delivery set ID.
@param double                                   $basketPrice Basket price.
@param \OxidEsales\Eshop\Application\Model\User $user        User object.

@return boolean
Checks if selected delivery set has PayPal payment .