lib/alipay/sign.rb in alipay-0.0.1 vs lib/alipay/sign.rb in alipay-0.0.2
- old
+ new
@@ -9,12 +9,12 @@
Digest::MD5.hexdigest("#{query}#{Alipay.key}")
end
def self.verify?(params)
- params = Utils.symbolize_keys(params)
- params.delete(:sign_type)
- sign = params.delete(:sign)
+ params = Utils.stringify_keys(params)
+ params.delete('sign_type')
+ sign = params.delete('sign')
generate(params) == sign
end
end
end