头条支付
parent
abf692b473
commit
77f2dad2f1
|
|
@ -57,19 +57,19 @@ class ToutiaoService
|
|||
'merchant_id' => $merchant_id,
|
||||
'app_id' => $app_id,
|
||||
'sign_type' => 'MD5',
|
||||
'timestamp' => time(),
|
||||
'timestamp' => (string) time(),
|
||||
'version' => '2.0',
|
||||
'trade_type' => 'H5',
|
||||
'product_code' => 'pay',
|
||||
'payment_type' => 'direct',
|
||||
'outorderno' => $order['order_no'],
|
||||
'uid' => md5($params['user']['id']),
|
||||
'total_amount' => intval($order['total_price']*100),
|
||||
'total_amount' => (string) $order['total_price']*100,
|
||||
'currency' => 'CNY',
|
||||
'subject' => '订单支付',
|
||||
'body' => $order['order_no'],
|
||||
'trade_time' => $order['add_time'],
|
||||
'valid_time' => intval(MyC('common_order_close_limit_time', 30, true))*60,
|
||||
'valid_time' => (string) intval(MyC('common_order_close_limit_time', 30, true))*60,
|
||||
'notify_url' => __MY_URL__,
|
||||
];
|
||||
$order_info['sign'] = (new \base\Toutiao())->PaySignCreated($order_info, $secret);
|
||||
|
|
|
|||
Loading…
Reference in New Issue