lib/active_merchant/billing/gateways/cardknox.rb in activemerchant-1.112.0 vs lib/active_merchant/billing/gateways/cardknox.rb in activemerchant-1.113.0

- old
+ new

@@ -310,10 +310,10 @@ initial_parameters = { Key: @options[:api_key], Version: '4.5.4', SoftwareName: 'Active Merchant', SoftwareVersion: ActiveMerchant::VERSION.to_s, - Command: command, + Command: command } seed = SecureRandom.hex(32).upcase hash = Digest::SHA1.hexdigest("#{initial_parameters[:command]}:#{@options[:pin]}:#{parameters[:amount]}:#{parameters[:invoice]}:#{seed}") initial_parameters[:Hash] = "s/#{seed}/#{hash}/n" unless @options[:pin].blank?