lib/active_merchant/billing/gateways/net_registry.rb in activemerchant-1.86.0 vs lib/active_merchant/billing/gateways/net_registry.rb in activemerchant-1.87.0
- old
+ new
@@ -140,20 +140,20 @@
#
# Login and password are added automatically, and the comment is
# omitted if nil.
def commit(action, params)
# get gateway response
- response = parse( ssl_post(self.live_url, post_data(action, params)) )
+ response = parse(ssl_post(self.live_url, post_data(action, params)))
Response.new(response['status'] == 'approved', message_from(response), response,
:authorization => authorization_from(response, action)
)
end
def post_data(action, params)
params['COMMAND'] = TRANSACTIONS[action]
params['LOGIN'] = "#{@options[:login]}/#{@options[:password]}"
- escape_uri(params.map{|k,v| "#{k}=#{v}"}.join('&'))
+ escape_uri(params.map { |k, v| "#{k}=#{v}" }.join('&'))
end
# The upstream is picky and so we can't use CGI.escape like we want to
def escape_uri(uri)
URI::DEFAULT_PARSER.escape(uri)