Module: Alipay::Wap::Notify
- Defined in:
- lib/alipay/wap/notify.rb
Class Method Summary collapse
Class Method Details
.verify?(params, options = {}) ⇒ Boolean
4 5 6 7 8 9 10 |
# File 'lib/alipay/wap/notify.rb', line 4 def self.verify?(params, = {}) params = Utils.stringify_keys(params) pid = [:pid] || Alipay.pid notify_id = params['notify_data'].scan(/\<notify_id\>(.*)\<\/notify_id\>/).flatten.first Sign.verify?(params, ) && ::Alipay::Notify.verify_notify_id?(pid, notify_id) end |