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' else false end end end end