lib/active_merchant/billing/gateways/inspire.rb in activemerchant-1.105.0 vs lib/active_merchant/billing/gateways/inspire.rb in activemerchant-1.106.0

- old
+ new

@@ -49,17 +49,17 @@ commit('sale', money, post) end def capture(money, authorization, options = {}) - post ={} + post = {} post[:transactionid] = authorization commit('capture', money, post) end def void(authorization, options = {}) - post ={} + post = {} post[:transactionid] = authorization commit('void', nil, post) end def refund(money, authorization, options = {}) @@ -91,11 +91,11 @@ # To match the other stored-value gateways, like TrustCommerce, # store and unstore need to be defined def store(creditcard, options = {}) billing_id = options.delete(:billing_id).to_s || true - authorize(100, creditcard, options.merge(:store => billing_id)) + authorize(100, creditcard, options.merge(store: billing_id)) end alias_method :unstore, :delete private @@ -171,13 +171,13 @@ parameters[:amount] = amount(money) if money response = parse(ssl_post(self.live_url, post_data(action, parameters))) Response.new(response['response'] == '1', message_from(response), response, - :authorization => response['transactionid'], - :test => test?, - :cvv_result => response['cvvresponse'], - :avs_result => { :code => response['avsresponse'] } + authorization: response['transactionid'], + test: test?, + cvv_result: response['cvvresponse'], + avs_result: { code: response['avsresponse'] } ) end def message_from(response) case response['responsetext']