lib/alipay/wap/sign.rb in alipay-0.6.0.beta2 vs lib/alipay/wap/sign.rb in alipay-0.6.0.beta3
- old
+ new
@@ -20,10 +20,10 @@
key = options[:pid] || Alipay.key
::Alipay::Sign::MD5.verify?(key, string, sign)
when '0001' # RSA
::Alipay::Sign::RSA.verify?(ALIPAY_RSA_PUBLIC_KEY, string, sign)
else
- raise ArgumentError, "[Alipay] Invalid sec_id, allow value: 'MD5', '0001'"
+ false
end
end
SORTED_VERIFY_PARAMS = %w( service v sec_id notify_data )
def self.params_to_string(params)