Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing line item quantity in episode 141

  • Loading branch information...
commit 3d1f55b1fe3d7469d7198748efc736fdfff2a63d 1 parent 4e6fab6
@ryanb authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  episode-141/store/app/models/cart.rb
View
2  episode-141/store/app/models/cart.rb
@@ -19,7 +19,7 @@ def paypal_url(return_url)
"amount_#{index+1}" => item.unit_price,
"item_name_#{index+1}" => item.product.name,
"item_number_#{index+1}" => item.id,
- "quantity_#{index+1}" => (item.quantity+1)
+ "quantity_#{index+1}" => item.quantity
})
end
"https://www.sandbox.paypal.com/cgi-bin/webscr?"+values.map {|k,v| "#{k}=#{v}" }.join("&")
Please sign in to comment.
Something went wrong with that request. Please try again.