lib/active_merchant/billing/gateways/commercegate.rb in activemerchant-1.79.2 vs lib/active_merchant/billing/gateways/commercegate.rb in activemerchant-1.80.0
- old
+ new
@@ -63,19 +63,19 @@
post[:address] = address[:address1]
post[:city] = address[:city]
post[:state] = address[:state]
post[:postalCode] = address[:zip]
end
- post[:countryCode] = ((address && address[:country]) || "US")
+ post[:countryCode] = ((address && address[:country]) || 'US')
end
def add_auth_purchase_options(post, money, options)
add_address(post, options[:address])
- post[:customerIP] = options[:ip] || "127.0.0.1"
+ post[:customerIP] = options[:ip] || '127.0.0.1'
post[:amount] = amount(money)
- post[:email] = options[:email] || "unknown@example.com"
+ post[:email] = options[:email] || 'unknown@example.com'
post[:currencyCode]= options[:currency] || currency(money)
post[:merchAcct] = options[:merchant]
end
@@ -125,19 +125,19 @@
def message_from(response)
if response['returnText'].present?
response['returnText']
else
- "Invalid response received from the CommerceGate API. " +
- "Please contact CommerceGate support if you continue to receive this message. " +
+ 'Invalid response received from the CommerceGate API. ' +
+ 'Please contact CommerceGate support if you continue to receive this message. ' +
"(The raw response returned by the API was #{response.inspect})"
end
end
def post_data(parameters)
parameters.collect do |key, value|
"#{key}=#{CGI.escape(value.to_s)}"
- end.join("&")
+ end.join('&')
end
end
end
end