lib/active_merchant/billing/gateways/moneris_us.rb in activemerchant-1.101.0 vs lib/active_merchant/billing/gateways/moneris_us.rb in activemerchant-1.102.0

- old
+ new

@@ -77,11 +77,11 @@ 'us_res_purchase_cc' elsif card_brand(creditcard_or_datakey) == 'check' 'us_ach_debit' elsif post[:data_key].blank? 'us_purchase' - end + end commit(action, post) end # This method retrieves locked funds from a customer's account (from a # PreAuth) and prepares them for deposit in a merchant's account. @@ -189,11 +189,11 @@ post[:expdate] = expdate(source) post[:cvd_value] = source.verification_value if source.verification_value? if crypt_type = options[:crypt_type] || @options[:crypt_type] post[:crypt_type] = crypt_type end - post[:cust_id] = options[:customer] || source.name + post[:cust_id] = options[:customer] || source.name end end # Common params used amongst the +credit+, +void+ and +capture+ methods def crediting_params(authorization, options = {}) @@ -234,11 +234,11 @@ end # Tests for a successful response from Moneris' servers def successful?(response) response[:response_code] && - response[:complete] && - (0..49).cover?(response[:response_code].to_i) + response[:complete] && + (0..49).cover?(response[:response_code].to_i) end def parse(xml) response = { :message => 'Global Error Receipt', :complete => false } hashify_xml!(xml, response)