lib/alipay/mobile/service.rb in alipay-0.15.0 vs lib/alipay/mobile/service.rb in alipay-0.15.1
- old
+ new
@@ -10,11 +10,11 @@
raise ArgumentError, "only support RSA sign_type" if sign_type != 'RSA'
params = {
'service' => 'mobile.securitypay.pay',
'_input_charset' => 'utf-8',
- 'partner' => options[:pid] || Alipay.pid,
- 'seller_id' => options[:pid] || Alipay.pid,
+ 'partner' => options[:partner] || options[:pid] || Alipay.pid,
+ 'seller_id' => options[:seller_id] || options[:pid] || Alipay.pid,
'payment_type' => '1'
}.merge(params)
string = Alipay::Mobile::Sign.params_to_string(params)
sign = CGI.escape(Alipay::Sign::RSA.sign(key, string))