another big commit :D

This commit is contained in:
jomo
2013-10-07 04:59:21 +02:00
parent 2761387703
commit 5fac505a31
74 changed files with 1003 additions and 357 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ class PaypalController < ApplicationController
end
protected
protected
def validate_IPN_notification(raw)
uri = URI.parse('https://www.paypal.com/cgi-bin/webscr?cmd=_notify-validate')
http = Net::HTTP.new(uri.host, uri.port)
@@ -29,7 +29,7 @@ class PaypalController < ApplicationController
http.use_ssl = true
response = http.post(uri.request_uri, raw,
'Content-Length' => "#{raw.size}",
'User-Agent' => "Redstoner.com"
'User-Agent' => "RedstonerServer, redstoner.com"
).body
end
end