Instead of fetching values from cart for the grand total we should fetch the value from the info object.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@780981 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ashish Vijaywargiya
2009-06-02 09:31:13 +00:00
parent 4ee3adb754
commit 1a46331d4c
@@ -249,7 +249,7 @@ public class GoogleCheckoutHelper {
}
// set the cart payment method
cart.addPaymentAmount(PAYMENT_METHOD, cart.getGrandTotal());
cart.addPaymentAmount(PAYMENT_METHOD, new BigDecimal(info.getOrderTotal()));
// validate the payment methods
CheckOutHelper coh = new CheckOutHelper(dispatcher, delegator, cart);