lib/alipay/wap/sign.rb in alipay-0.7.1 vs lib/alipay/wap/sign.rb in alipay-0.8.0
- old
+ new
@@ -15,10 +15,10 @@
sign = params.delete('sign')
string = params_to_string(params)
case params['sec_id']
when 'MD5'
- key = options[:pid] || Alipay.key
+ key = options[:key] || Alipay.key
::Alipay::Sign::MD5.verify?(key, string, sign)
when '0001' # RSA
::Alipay::Sign::RSA.verify?(ALIPAY_RSA_PUBLIC_KEY, string, sign)
else
false