lib/active_merchant/billing/gateways/paybox_direct.rb in activemerchant-1.54.0 vs lib/active_merchant/billing/gateways/paybox_direct.rb in activemerchant-1.55.0

- old
+ new

@@ -111,10 +111,11 @@ def refund(money, identification, options = {}) post = {} add_invoice(post, options) add_reference(post, identification) + add_amount(post, money, options) commit('refund', money, post) end private @@ -178,10 +179,10 @@ :version => API_VERSION, :type => TRANSACTIONS[action.to_sym], :dateq => Time.now.strftime('%d%m%Y%H%M%S'), :numquestion => unique_id(parameters[:order_id]), :site => @options[:login].to_s[0,7], - :rang => @options[:login].to_s[7..-1], + :rang => @options[:rang] || @options[:login].to_s[7..-1], :cle => @options[:password], :pays => '', :archivage => parameters[:order_id] )