source/Application/Model/Order.php
private function isValidPayment($basket)
    {
        $paymentId = $basket->getPaymentId();
        $paymentModel = oxNew(EshopPayment::class);
        $paymentModel->load($paymentId);

        $dynamicValues = $this->getDynamicValues();
        $shopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();

        return $paymentModel->isValidPayment(
            $dynamicValues,
            $shopId,
            $this->getUser(),
            $basket->getPriceForPayment(),
            $basket->getShippingId()
        );
    }
private function isValidPayment($basket)
    {
        $paymentId = $basket->getPaymentId();
        $paymentModel = oxNew(EshopPayment::class);
        $paymentModel->load($paymentId);

        $dynamicValues = $this->getDynamicValues();
        $shopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();

        return $paymentModel->isValidPayment(
            $dynamicValues,
            $shopId,
            $this->getUser(),
            $basket->getPriceForPayment(),
            $basket->getShippingId()
        );
    }
private function isValidPayment ( $ basket ) { $ paymentId = $ basket -> getPaymentId ( ) ; $ paymentModel = oxNew ( EshopPayment :: class ) ; $ paymentModel -> load ( $ paymentId ) ; $ dynamicValues = $ this -> getDynamicValues ( ) ; $ shopId = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getShopId ( ) ; return $ paymentModel -> isValidPayment ( $ dynamicValues , $ shopId , $ this -> getUser ( ) , $ basket -> getPriceForPayment ( ) , $ basket -> getShippingId ( ) ) ; }
Returns true if payment is valid.

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

@return bool
Returns true if payment is valid .