svn commit: r780981 - /ofbiz/trunk/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleCheckoutHelper.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r780981 - /ofbiz/trunk/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleCheckoutHelper.java

ashish-18
Author: ashish
Date: Tue Jun  2 09:31:13 2009
New Revision: 780981

URL: http://svn.apache.org/viewvc?rev=780981&view=rev
Log:
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);