Model/Order.php
protected function isEmptyPaymentValid($user, $basketPrice, $shippingId)
    {
        $valid = true;

        $emptyPayment = oxNew(\OxidEsales\Eshop\Application\Model\Payment::class);
        $emptyPayment->load('oxempty');
        if (!$emptyPayment->isValidPayment(null, null, $user, $basketPrice, $shippingId)) {
            $valid = false;
        }

        return $valid;
    }
protected function isEmptyPaymentValid($user, $basketPrice, $shippingId)
    {
        $valid = true;

        $emptyPayment = oxNew(\OxidEsales\Eshop\Application\Model\Payment::class);
        $emptyPayment->load('oxempty');
        if (!$emptyPayment->isValidPayment(null, null, $user, $basketPrice, $shippingId)) {
            $valid = false;
        }

        return $valid;
    }
protected function isEmptyPaymentValid ( $ user , $ basketPrice , $ shippingId ) { $ valid = true ; $ emptyPayment = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Payment :: class ) ; $ emptyPayment -> load ( 'oxempty' ) ; if ( ! $ emptyPayment -> isValidPayment ( null , null , $ user , $ basketPrice , $ shippingId ) ) { $ valid = false ; } return $ valid ; }
Checks whether Empty payment is available.

@param object $user
@param double $basketPrice
@param string $shippingId

@return bool
Checks whether Empty payment is available .