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

- old
+ new

@@ -10,13 +10,13 @@ BASIC_PATH = '/scripts/evolvcc.dll' ADVANCED_PATH = '/evolvcc/evolvcc.aspx' ACTIONS = { - :authorization => 'AuthorizeAPI', - :change_status => 'SJAPI_TransactionChangeStatusRequest', - :get_status => 'SJAPI_TransactionStatusRequest' + authorization: 'AuthorizeAPI', + change_status: 'SJAPI_TransactionChangeStatusRequest', + get_status: 'SJAPI_TransactionStatusRequest' } SUCCESS_MESSAGE = 'The transaction was successful.' MONETARY_CHANGE_STATUSES = ['SETTLE', 'AUTHORIZE', 'AUTHORIZE ADDITIONAL', 'CREDIT', 'SPLITSETTLE'] @@ -240,11 +240,11 @@ ActiveMerchant.deprecated CREDIT_DEPRECATION_MESSAGE refund(money, identification, options) end def status(order_id) - commit(:get_status, nil, :szOrderNumber => order_id) + commit(:get_status, nil, szOrderNumber: order_id) end private def advanced? @@ -262,13 +262,13 @@ def commit(action, money, parameters) response = parse(ssl_post(url_for(action), post_data(action, money, parameters)), action) # Pass along the original transaction id in the case an update transaction Response.new(response[:success], message_from(response, action), response, - :test => test?, - :authorization => response[:szTransactionFileName] || parameters[:szTransactionId], - :avs_result => { :code => response[:szAVSResponseCode] }, - :cvv_result => response[:szCVV2ResponseCode] + test: test?, + authorization: response[:szTransactionFileName] || parameters[:szTransactionId], + avs_result: { code: response[:szAVSResponseCode] }, + cvv_result: response[:szCVV2ResponseCode] ) end def url_for(action) result = test? ? self.test_url : self.live_url