Core/Events.php
public static function disablePaymentMethod()
    {
        $payment = oxNew(\OxidEsales\Eshop\Application\Model\Payment::class);
        if ($payment->load('oxidpaypal')) {
            $payment->oxpayments__oxactive = new \OxidEsales\Eshop\Core\Field(0);
            $payment->save();
        }
    }
public static function disablePaymentMethod()
    {
        $payment = oxNew(\OxidEsales\Eshop\Application\Model\Payment::class);
        if ($payment->load('oxidpaypal')) {
            $payment->oxpayments__oxactive = new \OxidEsales\Eshop\Core\Field(0);
            $payment->save();
        }
    }
public static function disablePaymentMethod ( ) { $ payment = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Payment :: class ) ; if ( $ payment -> load ( 'oxidpaypal' ) ) { $ payment -> oxpayments__oxactive = new \ OxidEsales \ Eshop \ Core \ Field ( 0 ) ; $ payment -> save ( ) ; } }
Disables PayPal payment method
Disables PayPal payment method