Sha256: 11fc30de0a9e1248eea2b6c422c37b6ba10167550bbecaf3317009a815aa5fe1
Contents?: true
Size: 346 Bytes
Versions: 3
Compression:
Stored size: 346 Bytes
Contents
module Alipay class Notify def self.verify?(params) if Sign.verify?(params) 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alipay-0.0.4 | lib/alipay/notify.rb |
alipay-0.0.3 | lib/alipay/notify.rb |
alipay-0.0.2 | lib/alipay/notify.rb |