lib/active_merchant/billing/gateways/swipe_checkout.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/swipe_checkout.rb in activemerchant-1.116.0
- old
+ new
@@ -107,12 +107,11 @@
Response.new(success,
success ?
TRANSACTION_APPROVED_MSG :
TRANSACTION_DECLINED_MSG,
response,
- test: test?
- )
+ test: test?)
else
build_error_response(message, response)
end
rescue ResponseError => e
build_error_response("ssl_post() with url #{url} raised ResponseError: #{e}")
@@ -123,11 +122,11 @@
build_error_response(msg)
end
end
end
- def call_api(api, params=nil)
+ def call_api(api, params = nil)
params ||= {}
params[:merchant_id] = @options[:login]
params[:api_key] = @options[:api_key]
# ssl_post() returns the response body as a string on success,
@@ -137,10 +136,10 @@
def url(api)
(test? ? self.test_url : self.live_url) + api
end
- def build_error_response(message, params={})
+ def build_error_response(message, params = {})
Response.new(
false,
message,
params,
test: test?