source/Application/Model/Payment.php
public function calculate($oBasket)
    {
        //getting basket price with applied discounts and vouchers
        $dPrice = $this->getPaymentValue($this->getBaseBasketPriceForPaymentCostCalc($oBasket));

        if (!$dPrice) {
            $dPrice = 0;
        }
        // calculating total price
        $oPrice = oxNew(\OxidEsales\Eshop\Core\Price::class);
        $oPrice->setNettoMode($this->_blPaymentVatOnTop);

        $oPrice->setPrice($dPrice);
        if ($dPrice > 0) {
            $oPrice->setVat($oBasket->getAdditionalServicesVatPercent());
        }

        $this->_oPrice = $oPrice;
    }
public function calculate($oBasket)
    {
        //getting basket price with applied discounts and vouchers
        $dPrice = $this->getPaymentValue($this->getBaseBasketPriceForPaymentCostCalc($oBasket));

        if (!$dPrice) {
            $dPrice = 0;
        }
        // calculating total price
        $oPrice = oxNew(\OxidEsales\Eshop\Core\Price::class);
        $oPrice->setNettoMode($this->_blPaymentVatOnTop);

        $oPrice->setPrice($dPrice);
        if ($dPrice > 0) {
            $oPrice->setVat($oBasket->getAdditionalServicesVatPercent());
        }

        $this->_oPrice = $oPrice;
    }
public function calculate ( $ oBasket ) { //getting basket price with applied discounts and vouchers $ dPrice = $ this -> getPaymentValue ( $ this -> getBaseBasketPriceForPaymentCostCalc ( $ oBasket ) ) ; if ( ! $ dPrice ) { $ dPrice = 0 ; } // calculating total price $ oPrice = oxNew ( \ OxidEsales \ Eshop \ Core \ Price :: class ) ; $ oPrice -> setNettoMode ( $ this -> _blPaymentVatOnTop ) ; $ oPrice -> setPrice ( $ dPrice ) ; if ( $ dPrice > 0 ) { $ oPrice -> setVat ( $ oBasket -> getAdditionalServicesVatPercent ( ) ) ; } $ this -> _oPrice = $ oPrice ; }
Returns price object for current payment applied on basket

@param \OxidEsales\Eshop\Application\Model\UserBasket $oBasket session basket
Returns price object for current payment applied on basket