source/Application/Model/Order.php
public function validatePayment($oBasket)
    {
        $paymentId = $oBasket->getPaymentId();

        if (!$this->isValidPaymentId($paymentId) || !$this->isValidPayment($oBasket)) {
            return self::ORDER_STATE_INVALIDPAYMENT;
        }
    }
public function validatePayment($oBasket)
    {
        $paymentId = $oBasket->getPaymentId();

        if (!$this->isValidPaymentId($paymentId) || !$this->isValidPayment($oBasket)) {
            return self::ORDER_STATE_INVALIDPAYMENT;
        }
    }
public function validatePayment ( $ oBasket ) { $ paymentId = $ oBasket -> getPaymentId ( ) ; if ( ! $ this -> isValidPaymentId ( $ paymentId ) || ! $ this -> isValidPayment ( $ oBasket ) ) { return self :: ORDER_STATE_INVALIDPAYMENT ; } }
Checks if payment used for current order is available and active.
Throws exception if not available

@param \OxidEsales\Eshop\Application\Model\Basket $oBasket basket object

@return null
Checks if payment used for current order is available and active . Throws exception if not available