微信/QQ支付退款优化
parent
fe2c1c1167
commit
8de059ca44
|
|
@ -414,7 +414,8 @@ class QQ
|
|||
'mch_id' => $this->config['mch_id'],
|
||||
'nonce_str' => md5(time().rand().$params['order_no']),
|
||||
'transaction_id' => $params['trade_no'],
|
||||
'out_refund_no' => $params['order_no'],
|
||||
'out_trade_no' => $params['order_no'],
|
||||
'out_refund_no' => $params['order_no'].GetNumberCode(),
|
||||
'refund_fee' => (int) (($params['refund_price']*1000)/10),
|
||||
'op_user_id' => $this->config['op_user_id'],
|
||||
'op_user_passwd' => md5($this->config['op_user_passwd']),
|
||||
|
|
|
|||
|
|
@ -540,7 +540,8 @@ class Weixin
|
|||
'nonce_str' => md5(time().rand().$params['order_no']),
|
||||
'sign_type' => 'MD5',
|
||||
'transaction_id' => $params['trade_no'],
|
||||
'out_refund_no' => $params['order_no'],
|
||||
'out_trade_no' => $params['order_no'],
|
||||
'out_refund_no' => $params['order_no'].GetNumberCode(),
|
||||
'total_fee' => (int) (($params['pay_price']*1000)/10),
|
||||
'refund_fee' => (int) (($params['refund_price']*1000)/10),
|
||||
'refund_desc' => $refund_reason,
|
||||
|
|
|
|||
Loading…
Reference in New Issue