DZ 品牌空間的支付寶接口出現(xiàn)
改動api_alipay.php文件的下面這個函數(shù)即可。
function credit_payurl($price, &$orderid) {
global $_G;
$orderid = gmdate('YmdHis', TIMESTAMP).random(18);
$args = array(
'subject' => $_G['setting']['sitename'].'-'.$_G['username'].'-'.lang('credit_payment'),
'body' => lang('credit_payment').'_'.$price,
'service' => 'create_partner_trade_by_buyer',
'partner' => DISCUZ_PARTNER,
'notify_url' => B_URL.'api/trade/notify_credit.php',
'return_url' => B_URL.'api/trade/notify_credit.php',
'show_url' => B_URL,
'_input_charset' => $_G['charset'],
'out_trade_no' => $orderid,
相關推薦
-
無相關信息