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

- old
+ new

@@ -6,12 +6,12 @@ self.test_url = 'https://demo.viaklix.com/process.asp' self.live_url = 'https://www.viaklix.com/process.asp' self.delimiter = "\r\n" self.actions = { - :purchase => 'SALE', - :credit => 'CREDIT' + purchase: 'SALE', + credit: 'CREDIT' } APPROVED = '0' self.supported_cardtypes = [:visa, :master, :american_express, :discover] @@ -135,13 +135,13 @@ parameters[:transaction_type] = self.actions[action] response = parse(ssl_post(test? ? self.test_url : self.live_url, post_data(parameters))) Response.new(response['result'] == APPROVED, message_from(response), response, - :test => @options[:test] || test?, - :authorization => authorization_from(response), - :avs_result => { :code => response['avs_response'] }, - :cvv_result => response['cvv2_response'] + test: @options[:test] || test?, + authorization: authorization_from(response), + avs_result: { code: response['avs_response'] }, + cvv_result: response['cvv2_response'] ) end def authorization_from(response) response['txn_id']