src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Samples/AutomaticPaymentsSimpleCheckoutExample.php
public function calculatePaymentAmountBasedOnBuyerDetails ($BillingAgreementDetails, 
            $orderAmountPreTaxAndShipping, $shippingType)
    {
        return $this->_shippingAndTaxCostHelper->calculateTotalAmount($BillingAgreementDetails, 
                $orderAmountPreTaxAndShipping, $shippingType);
    }
public function calculatePaymentAmountBasedOnBuyerDetails ($BillingAgreementDetails, 
            $orderAmountPreTaxAndShipping, $shippingType)
    {
        return $this->_shippingAndTaxCostHelper->calculateTotalAmount($BillingAgreementDetails, 
                $orderAmountPreTaxAndShipping, $shippingType);
    }
public function calculatePaymentAmountBasedOnBuyerDetails ( $ BillingAgreementDetails , $ orderAmountPreTaxAndShipping , $ shippingType ) { return $ this -> _shippingAndTaxCostHelper -> calculateTotalAmount ( $ BillingAgreementDetails , $ orderAmountPreTaxAndShipping , $ shippingType ) ; }
Calculate the amount to charge the buyer for each payment, based on the
buyer destination address

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

@param OffAmazonPaymentsService_Model_BillingAgreementDetails $BillingAgreementDetails
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 amount to charge the buyer for each payment based on the buyer destination address