lib/active_merchant/billing/gateways/d_local.rb
# A refund may not be immediate, and return a status_code of 100, "Pending".
# Since we aren't handling async notifications of eventual success,
# we count 100 as a success.
A refund may not be immediate, and return a status_code of 100, "Pending".
Since we aren't handling async notifications of eventual success,
we count 100 as a success.
A refund may not be immediate and return a status_code of 100 " Pending " . Since we aren ' t handling async notifications of eventual success we count 100 as a success .
def success_from(action, response)
        return false unless response['status_code']
        %w[100 200 400 600 700].include? response['status_code'].to_s
      end
def success_from ( action , response ) return false unless response [ 'status_code' ] %w[ 100 200 400 600 700 ] . include? response [ 'status_code' ] . to_s end
A refund may not be immediate, and return a status_code of 100, "Pending".
A refund may not be immediate and return a status_code of 100 " Pending " .
action
<not_specific>
response
<not_specific>