lib/alipay/sign.rb in alipay-0.6.0.beta2 vs lib/alipay/sign.rb in alipay-0.6.0.beta3
- old
+ new
@@ -41,10 +41,10 @@
when 'RSA'
RSA.verify?(ALIPAY_RSA_PUBLIC_KEY, string, sign)
when 'DSA'
DSA.verify?(string, sign)
else
- raise ArgumentError, "[Alipay] Invalid sign_type #{sign_type}, allow values: 'MD5', 'RSA', 'DSA'"
+ false
end
end
def self.params_to_string(params)
params.sort.map { |item| item.join('=') }.join('&')