lib/active_merchant/billing/gateways/epay.rb in activemerchant-1.79.2 vs lib/active_merchant/billing/gateways/epay.rb in activemerchant-1.80.0
- old
+ new
@@ -189,11 +189,11 @@
REXML::Document.new(ssl_post(live_url + 'remote/payment.asmx', data, headers))
end
def do_authorize(params)
headers = {}
- headers['Referer'] = (options[:password] || "activemerchant.org")
+ headers['Referer'] = (options[:password] || 'activemerchant.org')
response = raw_ssl_request(:post, live_url + 'auth/default.aspx', authorize_post_data(params), headers)
# Authorize gives the response back by redirecting with the values in
# the URL query
@@ -242,11 +242,11 @@
end
def make_headers(data, soap_call)
{
'Content-Type' => 'text/xml; charset=utf-8',
- 'Host' => "ssl.ditonlinebetalingssystem.dk",
+ 'Host' => 'ssl.ditonlinebetalingssystem.dk',
'Content-Length' => data.size.to_s,
'SOAPAction' => self.live_url + 'remote/payment/' + soap_call
}
end
@@ -272,15 +272,15 @@
params[:cms] = 'activemerchant'
params[:accepturl] = live_url + 'auth/default.aspx?accept=1'
params[:declineurl] = live_url + 'auth/default.aspx?decline=1'
params[:merchantnumber] = @options[:login]
- params.collect { |key, value| "#{key}=#{CGI.escape(value.to_s)}" }.join("&")
+ params.collect { |key, value| "#{key}=#{CGI.escape(value.to_s)}" }.join('&')
end
# Limited to 20 digits max
def format_order_number(number)
- number.to_s.gsub(/[^\w]/, '').rjust(4, "0")[0...20]
+ number.to_s.gsub(/[^\w]/, '').rjust(4, '0')[0...20]
end
end
end
end