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

- old
+ new

@@ -56,25 +56,25 @@ '38' => STANDARD_ERROR_CODE[:expired_card], '384' => STANDARD_ERROR_CODE[:config_error], } MARKET_TYPE = { - :moto => '1', - :retail => '2' + moto: '1', + retail: '2' } DEVICE_TYPE = { - :unknown => '1', - :unattended_terminal => '2', - :self_service_terminal => '3', - :electronic_cash_register => '4', - :personal_computer_terminal => '5', - :airpay => '6', - :wireless_pos => '7', - :website => '8', - :dial_terminal => '9', - :virtual_terminal => '10' + unknown: '1', + unattended_terminal: '2', + self_service_terminal: '3', + electronic_cash_register: '4', + personal_computer_terminal: '5', + airpay: '6', + wireless_pos: '7', + website: '8', + dial_terminal: '9', + virtual_terminal: '10' } class_attribute :duplicate_window APPROVED, DECLINED, ERROR, FRAUD_REVIEW = 1, 2, 3, 4 @@ -219,16 +219,16 @@ gsub(%r((<cryptogram>).+(</cryptogram>)), '\1[FILTERED]\2') end def supports_network_tokenization? card = Billing::NetworkTokenizationCreditCard.new({ - :number => '4111111111111111', - :month => 12, - :year => 20, - :first_name => 'John', - :last_name => 'Smith', - :brand => 'visa', - :payment_cryptogram => 'EHuWW9PiBkWvqE5juRwDzAUFBAk=' + number: '4111111111111111', + month: 12, + year: 20, + first_name: 'John', + last_name: 'Smith', + brand: 'visa', + payment_cryptogram: 'EHuWW9PiBkWvqE5juRwDzAUFBAk=' }) request = post_data(:authorize) do |xml| add_auth_purchase(xml, 'authOnlyTransaction', 1, card, {}) end