app/code/community/Adyen/Fee/Helper/Data.php
public function getPaymentFeeVat($shippingAddress)
    {
        $paymentTax = 0;
        $quote = $shippingAddress->getQuote();
        $store = $quote->getStore();
        $fee = $this->getPaymentFeeAmount($quote, $store);

        if ($fee) {
            $config = Mage::getSingleton('adyen_fee/tax_config');
            $custTaxClassId = $quote->getCustomerTaxClassId();
            $taxCalculationModel = Mage::getSingleton('tax/calculation');
            $request = $taxCalculationModel->getRateRequest(
                $shippingAddress, $quote->getBillingAddress(),
                $custTaxClassId, $store
            );
            $paymentTaxClass = $config->getPaymentFeeTaxClass($store);
            $rate = $taxCalculationModel->getRate($request->setProductClassId($paymentTaxClass));
            if ($rate) {
                $paymentTax = $taxCalculationModel->calcTaxAmount(
                    $fee, $rate,
                    $config->paymentFeePriceIncludesTax($store), true
                );
            }
        }

        return $paymentTax;
    }
public function getPaymentFeeVat($shippingAddress)
    {
        $paymentTax = 0;
        $quote = $shippingAddress->getQuote();
        $store = $quote->getStore();
        $fee = $this->getPaymentFeeAmount($quote, $store);

        if ($fee) {
            $config = Mage::getSingleton('adyen_fee/tax_config');
            $custTaxClassId = $quote->getCustomerTaxClassId();
            $taxCalculationModel = Mage::getSingleton('tax/calculation');
            $request = $taxCalculationModel->getRateRequest(
                $shippingAddress, $quote->getBillingAddress(),
                $custTaxClassId, $store
            );
            $paymentTaxClass = $config->getPaymentFeeTaxClass($store);
            $rate = $taxCalculationModel->getRate($request->setProductClassId($paymentTaxClass));
            if ($rate) {
                $paymentTax = $taxCalculationModel->calcTaxAmount(
                    $fee, $rate,
                    $config->paymentFeePriceIncludesTax($store), true
                );
            }
        }

        return $paymentTax;
    }
public function getPaymentFeeVat ( $ shippingAddress ) { $ paymentTax = 0 ; $ quote = $ shippingAddress -> getQuote ( ) ; $ store = $ quote -> getStore ( ) ; $ fee = $ this -> getPaymentFeeAmount ( $ quote , $ store ) ; if ( $ fee ) { $ config = Mage :: getSingleton ( 'adyen_fee/tax_config' ) ; $ custTaxClassId = $ quote -> getCustomerTaxClassId ( ) ; $ taxCalculationModel = Mage :: getSingleton ( 'tax/calculation' ) ; $ request = $ taxCalculationModel -> getRateRequest ( $ shippingAddress , $ quote -> getBillingAddress ( ) , $ custTaxClassId , $ store ) ; $ paymentTaxClass = $ config -> getPaymentFeeTaxClass ( $ store ) ; $ rate = $ taxCalculationModel -> getRate ( $ request -> setProductClassId ( $ paymentTaxClass ) ) ; if ( $ rate ) { $ paymentTax = $ taxCalculationModel -> calcTaxAmount ( $ fee , $ rate , $ config -> paymentFeePriceIncludesTax ( $ store ) , true ) ; } } return $ paymentTax ; }
Returns the payment fee tax for the payment fee

@param Mage_Sales_Model_Quote_Address $shippingAddress
@return float
Returns the payment fee tax for the payment fee