lib/active_merchant/billing/gateways/sage_pay.rb
# SagePay returns data in the following format
# Key1=value1
# Key2=value2
SagePay returns data in the following format
Key1=value1
Key2=value2
SagePay returns data in the following format Key1 = value1 Key2 = value2
def parse(body)
        result = {}
        body.to_s.each_line do |pair|
          result[$1] = $2 if pair.strip =~ /\A([^=]+)=(.+)\Z/im
        end
        result
      end
def parse ( body ) result = { } body . to_s . each_line do | pair | result [ $1 ] = $2 if pair . strip =~ / \A ([^=]+)=(.+) \Z /im end result end
SagePay returns data in the following format
Key1=value1
Key2=value2
SagePay returns data in the following format Key1 = value1 Key2 = value2
body
<not_specific>