lib/paypal/nvp/response.rb in creative-paypal-express-1.2.1 vs lib/paypal/nvp/response.rb in creative-paypal-express-1.3.0
- old
+ new
@@ -191,12 +191,13 @@
if prefix
payment_responses[index.to_i] ||= {}
payment_responses[index.to_i][key.to_sym] = attrs.delete(_attr_)
end
end
+
@payment_responses = payment_responses.collect do |_attrs_|
- Payment::Response.new _attrs_
+ Payment::Response.new(_attrs_)
end
# payment_info
payment_info = []
attrs.keys.each do |_attr_|
@@ -232,10 +233,14 @@
Paypal.log "Ignored Parameter (#{self.class}): #{key}=#{value}", :warn
end
end
def to_s
- return @raw_response.to_s
+ @raw_response.to_s
+ end
+
+ def to_json
+ @raw_response.to_json
end
end
end
end