Author: ashish
Date: Tue Jun 2 09:31:13 2009
New Revision: 780981
URL:
http://svn.apache.org/viewvc?rev=780981&view=revLog:
Instead of fetching values from cart for the grand total we should fetch the value from the info object.
Modified:
ofbiz/trunk/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleCheckoutHelper.java
Modified: ofbiz/trunk/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleCheckoutHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleCheckoutHelper.java?rev=780981&r1=780980&r2=780981&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleCheckoutHelper.java (original)
+++ ofbiz/trunk/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleCheckoutHelper.java Tue Jun 2 09:31:13 2009
@@ -249,7 +249,7 @@
}
// 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);