lib/active_merchant/billing/gateways/moneris_us.rb in activemerchant-1.43.3 vs lib/active_merchant/billing/gateways/moneris_us.rb in activemerchant-1.44.0

- old
+ new

@@ -69,11 +69,11 @@ # number and order number be included. Concatenate your transaction # number and order_id by using a semicolon (';'). This is to keep the # Moneris interface consistent with other gateways. (See +capture+ for # details.) def credit(money, authorization, options = {}) - deprecated CREDIT_DEPRECATION_MESSAGE + ActiveMerchant.deprecated CREDIT_DEPRECATION_MESSAGE refund(money, authorization, options) end def refund(money, authorization, options = {}) commit 'us_refund', crediting_params(authorization, :amount => amount(money)) @@ -174,19 +174,9 @@ end def message_from(message) return 'Unspecified error' if message.blank? message.gsub(/[^\w]/, ' ').split.join(" ").capitalize - end - - # Make a Ruby type out of the response string - def normalize(field) - case field - when "true" then true - when "false" then false - when '', "null" then nil - else field - end end def actions { "us_purchase" => [:order_id, :cust_id, :amount, :pan, :expdate, :crypt_type],