source/Application/Model/Payment.php
public function getPaymentValue($dBasePrice)
    {
        if ($this->oxpayments__oxaddsumtype->value == "%") {
            $dRet = $dBasePrice * $this->oxpayments__oxaddsum->value / 100;
        } else {
            $oCur = \OxidEsales\Eshop\Core\Registry::getConfig()->getActShopCurrencyObject();
            $dRet = $this->oxpayments__oxaddsum->value * $oCur->rate;
        }

        if (($dRet * -1) > $dBasePrice) {
            $dRet = $dBasePrice;
        }

        return $dRet;
    }
public function getPaymentValue($dBasePrice)
    {
        if ($this->oxpayments__oxaddsumtype->value == "%") {
            $dRet = $dBasePrice * $this->oxpayments__oxaddsum->value / 100;
        } else {
            $oCur = \OxidEsales\Eshop\Core\Registry::getConfig()->getActShopCurrencyObject();
            $dRet = $this->oxpayments__oxaddsum->value * $oCur->rate;
        }

        if (($dRet * -1) > $dBasePrice) {
            $dRet = $dBasePrice;
        }

        return $dRet;
    }
public function getPaymentValue ( $ dBasePrice ) { if ( $ this -> oxpayments__oxaddsumtype -> value == "%" ) { $ dRet = $ dBasePrice * $ this -> oxpayments__oxaddsum -> value / 100 ; } else { $ oCur = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getActShopCurrencyObject ( ) ; $ dRet = $ this -> oxpayments__oxaddsum -> value * $ oCur -> rate ; } if ( ( $ dRet * - 1 ) > $ dBasePrice ) { $ dRet = $ dBasePrice ; } return $ dRet ; }
Returns additional taxes to base article price.

@param double $dBasePrice Base article price

@return double
Returns additional taxes to base article price .