src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Samples/SimpleCheckoutExample.php
public function calculateOrderTotalBasedOnBuyerDetails($orderReferenceDetails, $orderAmountPreTaxAndShipping, $shippingType) 
    {
        return $this->_shippingAndTaxCostHelper->calculateTotalAmount($orderReferenceDetails,
                $orderAmountPreTaxAndShipping, $shippingType);
    }
public function calculateOrderTotalBasedOnBuyerDetails($orderReferenceDetails, $orderAmountPreTaxAndShipping, $shippingType) 
    {
        return $this->_shippingAndTaxCostHelper->calculateTotalAmount($orderReferenceDetails,
                $orderAmountPreTaxAndShipping, $shippingType);
    }
public function calculateOrderTotalBasedOnBuyerDetails ( $ orderReferenceDetails , $ orderAmountPreTaxAndShipping , $ shippingType ) { return $ this -> _shippingAndTaxCostHelper -> calculateTotalAmount ( $ orderReferenceDetails , $ orderAmountPreTaxAndShipping , $ shippingType ) ; }
Calculate the total amount to charge the buyer for this order,
based on the buyer destination address

Note that until the order is confirmed, the name & address fields will
not be returned to the client

@param OffAmazonPaymentsService_Model_OrderReferenceDetails $orderReferenceDetails        response
@param string                                               $orderAmountPreTaxAndShipping order amount
@param int                                                  $shippingType                 shipping type

@return float total amount for the order, with shipping and tax included
Calculate the total amount to charge the buyer for this order based on the buyer destination address