/** * Get the fee tax based on the shipping address and tax rate. * * @param Mage_Customer_Model_Address_Abstract $address * @param float $taxRate * @param float|null $fee * @param boolean $isInclTax * * @return float */ protected function _getBuckarooFeeTax($address, $taxRate, $fee = null, $isInclTax = false) { if (is_null($fee)) { $fee = (double) $address->getBuckarooFee(); } $taxCalculation = $this->getTaxCalculation(); $feeTax = $taxCalculation->calcTaxAmount($fee, $taxRate, $isInclTax, false); return $feeTax; }