lib/gateway/Gateway.rb in stone_ecommerce-1.0.2 vs lib/gateway/Gateway.rb in stone_ecommerce-1.0.3

- old
+ new

@@ -140,12 +140,12 @@ else saleHash['ShoppingCartCollection'][index]['DeliveryAddress'] = nil end if shoppingCart.ShoppingCartItemCollection.any? - shoppingCart.ShoppingCartItemCollection.each do |cartItem| + shoppingCart.ShoppingCartItemCollection.each_with_index do |cartItem, cartIndex| item = cartItem.to_json - saleHash['ShoppingCartCollection'][index]['ShoppingCartItemCollection'] << item + saleHash['ShoppingCartCollection'][index]['ShoppingCartItemCollection'][cartIndex] = item end else saleHash['ShoppingCartCollection'][index]['ShoppingCartItemCollection'] = nil end end