def decrypt_batch_file_response(response_filename, args)
      passphrase = get_config(:passphrase, args)
      delete_batch_files = get_config(:deleteBatchFiles, args)
      if passphrase == ""
        raise RuntimeError, "The passphrase to decrypt the batch file responses is missing from the config"
      end
      decrypted_response_filename = response_filename.gsub('/encrypted', '').gsub(".encrypted", "")

      decrypted_file = File.open(decrypted_response_filename, "w")
      IOStreams::Pgp::Reader.open(
          response_filename,
          passphrase: passphrase
      ) do |stream|
        while !stream.eof?
          decrypted_file.puts(stream.readline())
          #puts stream.readline()
        end
      end
      decrypted_file.close()
    rescue IOStreams::Pgp::Failure => e
      raise ArgumentError, "Please check if you have entered correct passphrase to config and that your " +
          "merchant private key is added to your gpg keyring and is trusted. #{e.message}"
    end
def decrypt_batch_file_response(response_filename, args)
      passphrase = get_config(:passphrase, args)
      delete_batch_files = get_config(:deleteBatchFiles, args)
      if passphrase == ""
        raise RuntimeError, "The passphrase to decrypt the batch file responses is missing from the config"
      end
      decrypted_response_filename = response_filename.gsub('/encrypted', '').gsub(".encrypted", "")

      decrypted_file = File.open(decrypted_response_filename, "w")
      IOStreams::Pgp::Reader.open(
          response_filename,
          passphrase: passphrase
      ) do |stream|
        while !stream.eof?
          decrypted_file.puts(stream.readline())
          #puts stream.readline()
        end
      end
      decrypted_file.close()
    rescue IOStreams::Pgp::Failure => e
      raise ArgumentError, "Please check if you have entered correct passphrase to config and that your " +
          "merchant private key is added to your gpg keyring and is trusted. #{e.message}"
    end
Decrypt the encrypted batch response file
 +response_filename+:: Filename of encrypted batch response file
     The decrypted response would be placed in +response_filename+.gsub("encrypted", "")
 +args+:: An (arg) +Hash+ containing the passphrase to atempt to decrypt the file
 If not provided, the values will be populated from the configuration file.