lib/alipay/service.rb in alipay-0.6.0 vs lib/alipay/service.rb in alipay-0.7.0
- old
+ new
@@ -10,11 +10,11 @@
params = {
'service' => 'create_partner_trade_by_buyer',
'_input_charset' => 'utf-8',
'partner' => options[:pid] || Alipay.pid,
- 'seller_email' => options[:seller_email] || Alipay.seller_email,
+ 'seller_id' => options[:pid] || Alipay.pid,
'payment_type' => '1'
}.merge(params)
request_uri(params, options).to_s
end
@@ -27,11 +27,11 @@
params = {
'service' => 'trade_create_by_buyer',
'_input_charset' => 'utf-8',
'partner' => options[:pid] || Alipay.pid,
- 'seller_email' => options[:seller_email] || Alipay.seller_email,
+ 'seller_id' => options[:pid] || Alipay.pid,
'payment_type' => '1'
}.merge(params)
request_uri(params, options).to_s
end
@@ -48,11 +48,11 @@
params = {
'service' => 'create_direct_pay_by_user',
'_input_charset' => 'utf-8',
'partner' => options[:pid] || Alipay.pid,
- 'seller_email' => options[:seller_email] || Alipay.seller_email,
+ 'seller_id' => options[:pid] || Alipay.pid,
'payment_type' => '1'
}.merge(params)
request_uri(params, options).to_s
end
@@ -71,11 +71,11 @@
params = {
'service' => 'refund_fastpay_by_platform_pwd', # 接口名称
'_input_charset' => 'utf-8',
'partner' => options[:pid] || Alipay.pid,
- 'seller_email' => options[:seller_email] || Alipay.seller_email,
+ 'seller_user_id' => options[:pid] || Alipay.pid,
'refund_date' => Time.now.strftime('%Y-%m-%d %H:%M:%S'), # 申请退款时间
'batch_num' => data.size, # 总笔数
'detail_data' => detail_data # 转换后的单笔数据集字符串
}.merge(params)
@@ -127,11 +127,10 @@
params = {
'service' => 'create_forex_trade',
'_input_charset' => 'utf-8',
'partner' => options[:pid] || Alipay.pid,
- 'seller_email' => options[:seller_email] || Alipay.seller_email
}.merge(params)
request_uri(params, options).to_s
end
@@ -169,14 +168,14 @@
check_required_params(params, MOBILD_SECURITY_PAY_REQUIRED_PARAMS)
sign_type = options[:sign_type] || Alipay.sign_type
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[:seller_email] || Alipay.seller_email,
- 'payment_type' => '1',
- 'service' => 'mobile.securitypay.pay'
+ 'seller_id' => options[:pid] || Alipay.pid,
+ 'payment_type' => '1'
}.merge(params)
request_uri(params, options).to_s
end