lib/active_merchant/billing/gateways/federated_canada.rb in activemerchant-1.105.0 vs lib/active_merchant/billing/gateways/federated_canada.rb in activemerchant-1.106.0
- old
+ new
@@ -52,11 +52,11 @@
options[:transactionid] = authorization
commit('void', nil, options)
end
def refund(money, authorization, options = {})
- commit('refund', money, options.merge(:transactionid => authorization))
+ commit('refund', money, options.merge(transactionid: authorization))
end
def credit(money, authorization, options = {})
ActiveMerchant.deprecated CREDIT_DEPRECATION_MESSAGE
refund(money, authorization, options)
@@ -120,13 +120,13 @@
data = ssl_post(self.live_url, post_data(action, parameters))
response = parse(data)
message = message_from(response)
Response.new(success?(response), message, response,
- :test => test?,
- :authorization => response['transactionid'],
- :avs_result => {:code => response['avsresponse']},
- :cvv_result => response['cvvresponse']
+ test: test?,
+ authorization: response['transactionid'],
+ avs_result: {code: response['avsresponse']},
+ cvv_result: response['cvvresponse']
)
end
def success?(response)
response['response'] == '1'