微信支付 默认分账

master
tping 3 years ago
parent 3af127e8be
commit d9afb5fc47

@ -42,7 +42,11 @@ class Weixin
//自定义订单号,此处仅作举例
$timeStamp = time();
if (!isset($payConf['share']) || $payConf['share'] != 'N') { // 默认分账
$unifiedOrder->setParameter("profit_sharing", 'Y');//分账
}
$unifiedOrder->setParameter("out_trade_no", $order_no);//商户订单号
$unifiedOrder->setParameter("total_fee", $pay_amount * 100);//总金额

Loading…
Cancel
Save