Sha256: ea3495f566cb0719209aafd36ccc515859833d6a89ee4f1eaee95e48aae16d2b

Contents?: true

Size: 396 Bytes

Versions: 19

Compression:

Stored size: 396 Bytes

Contents

module Alipay
  module Wap
    module Notify
      def self.verify?(params, options = {})
        params = Utils.stringify_keys(params)
        pid = options[:pid] || Alipay.pid
        notify_id = params['notify_data'].scan(/\<notify_id\>(.*)\<\/notify_id\>/).flatten.first

        Sign.verify?(params, options) && ::Alipay::Notify.verify_notify_id?(pid, notify_id)
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
alipay-0.17.0 lib/alipay/wap/notify.rb
alipay-0.16.0 lib/alipay/wap/notify.rb
alipay-0.15.2 lib/alipay/wap/notify.rb
alipay-0.15.1 lib/alipay/wap/notify.rb
alipay-0.15.0 lib/alipay/wap/notify.rb
yl_alipay-0.15.3 lib/alipay/wap/notify.rb
yl_alipay-0.15.2 lib/alipay/wap/notify.rb
alipay-0.14.0 lib/alipay/wap/notify.rb
alipay-0.13.0 lib/alipay/wap/notify.rb
alipay-0.12.0 lib/alipay/wap/notify.rb
alipay-0.11.0 lib/alipay/wap/notify.rb
alipay-0.10.0 lib/alipay/wap/notify.rb
alipay-0.9.0 lib/alipay/wap/notify.rb
alipay-0.8.0 lib/alipay/wap/notify.rb
alipay-0.7.1 lib/alipay/wap/notify.rb
alipay-0.7.0 lib/alipay/wap/notify.rb
alipay-0.6.0 lib/alipay/wap/notify.rb
alipay-0.6.0.beta3 lib/alipay/wap/notify.rb
alipay-0.6.0.beta2 lib/alipay/wap/notify.rb