lib/alipay/notify.rb in alipay-0.0.1 vs lib/alipay/notify.rb in alipay-0.0.2
- old
+ new
@@ -1,10 +1,10 @@
module Alipay
class Notify
def self.verify?(params)
if Sign.verify?(params)
- params = Utils.symbolize_keys(params)
- open("https://mapi.alipay.com/gateway.do?service=notify_verify&partner=#{Alipay.pid}¬ify_id=#{CGI.escape params[:notify_id].to_s}").read == 'true'
+ params = Utils.stringify_keys(params)
+ open("https://mapi.alipay.com/gateway.do?service=notify_verify&partner=#{Alipay.pid}¬ify_id=#{CGI.escape params['notify_id'].to_s}").read == 'true'
else
false
end
end
end