lib/rubykassa/payment_interface.rb in rubykassa-0.2.4 vs lib/rubykassa/payment_interface.rb in rubykassa-0.2.5

- old
+ new

@@ -32,12 +32,16 @@ def pay_url(options = {}) options = options.slice(:currency, :description, :email, :culture) "#{base_url}?" + initial_options.merge(options).map do |key, value| - "#{PARAMS_CONFORMITY[key.to_sym]}=#{value}" unless key =~ /^shp/ - end.compact!.join("&") + if key =~ /^shp/ + "#{key}=#{value}" + else + "#{PARAMS_CONFORMITY[key]}=#{value}" + end + end.compact.join("&") end def initial_options { login: Rubykassa.login, @@ -45,6 +49,6 @@ invoice_id: @invoice_id, signature: generate_signature_for(:payment) }.merge(Hash[@params.sort.map {|param_name| ["shp#{param_name[0]}".to_sym, param_name[1]]}]) end end -end +end \ No newline at end of file