lib/veritrans/client.rb in veritrans-1.2.4 vs lib/veritrans/client.rb in veritrans-1.2.5
- old
+ new
@@ -65,9 +65,14 @@
if !params[:installment_terms].blank?
params.merge!({ "installment_terms" => params[:installment_terms].to_json })
params.delete :installment_terms
end
+ if !params[:payment_methods].blank?
+ params.merge!({ "payment_methods[]" => params[:payment_methods]})
+ params.delete :payment_methods
+ end
+
commodity = @commodity.collect do |data|
data.keys.map do |key|
if key.downcase == "commodity_id"
data["item_id[]"] = data[key]
end