app/code/community/Adyen/Payment/Block/ApplePay.php
public function getSubtotalInclTax()
    {
        $cart = Mage::getModel('checkout/cart');
        $subtotal = 0;
        $totals = $cart->getQuote()->getTotals();
        // calculate subtotal from grand total and shipping
        // ignore Magento tax config, add tax to shipping depending on country
        $total = $shipping = 0;
        if(isset($totals['grand_total']) && $totals['grand_total']->getValue()) {
          $total = $totals["grand_total"]->getValue();
        }
        if(isset($totals['shipping']) && $totals['shipping']->getValue()) {
          $shipping = $totals["shipping"]->getValue(); 
          $address = $cart->getQuote()->getShippingAddress();
          $shipping = Mage::helper('tax')->getShippingPrice($shipping, true, $address);
        }
        $subtotal = $total - $shipping;
        return $subtotal;
    }
public function getSubtotalInclTax()
    {
        $cart = Mage::getModel('checkout/cart');
        $subtotal = 0;
        $totals = $cart->getQuote()->getTotals();
        // calculate subtotal from grand total and shipping
        // ignore Magento tax config, add tax to shipping depending on country
        $total = $shipping = 0;
        if(isset($totals['grand_total']) && $totals['grand_total']->getValue()) {
          $total = $totals["grand_total"]->getValue();
        }
        if(isset($totals['shipping']) && $totals['shipping']->getValue()) {
          $shipping = $totals["shipping"]->getValue(); 
          $address = $cart->getQuote()->getShippingAddress();
          $shipping = Mage::helper('tax')->getShippingPrice($shipping, true, $address);
        }
        $subtotal = $total - $shipping;
        return $subtotal;
    }
public function getSubtotalInclTax ( ) { $ cart = Mage :: getModel ( 'checkout/cart' ) ; $ subtotal = 0 ; $ totals = $ cart -> getQuote ( ) -> getTotals ( ) ; // calculate subtotal from grand total and shipping // ignore Magento tax config, add tax to shipping depending on country $ total = $ shipping = 0 ; if ( isset ( $ totals [ 'grand_total' ] ) && $ totals [ 'grand_total' ] -> getValue ( ) ) { $ total = $ totals [ "grand_total" ] -> getValue ( ) ; } if ( isset ( $ totals [ 'shipping' ] ) && $ totals [ 'shipping' ] -> getValue ( ) ) { $ shipping = $ totals [ "shipping" ] -> getValue ( ) ; $ address = $ cart -> getQuote ( ) -> getShippingAddress ( ) ; $ shipping = Mage :: helper ( 'tax' ) -> getShippingPrice ( $ shipping , true , $ address ) ; } $ subtotal = $ total - $ shipping ; return $ subtotal ; }
Re-using subtotal calculation from Mage_Checkout_Block_Cart_Sidebar

@return decimal subtotal amount including tax
Re - using subtotal calculation from Mage_Checkout_Block_Cart_Sidebar