lib/mpower/checkout/invoice.rb in mpower-1.0.5 vs lib/mpower/checkout/invoice.rb in mpower-1.0.6

- old
+ new

@@ -16,16 +16,17 @@ @return_url = @store.return_url @cancel_url = @store.cancel_url end # Adds invoice items to the @items hash, the idea is to allow this function to be used in a loop - def add_item(name,quantity,unit_price,total_price) + def add_item(name,quantity,unit_price,total_price,description="") @items.merge!({ :"item_#{@items.size}" => { :name => name, :quantity => quantity, :unit_price => unit_price, - :total_price => total_price + :total_price => total_price, + :description => description } }) end # Adds invoice tax to the @taxes hash, the idea is to allow this function to be used in a loop \ No newline at end of file