|
@@ -40,11 +40,10 @@ if ($req->InserDataBase()) {
|
|
$input->SetBody($req->product_name); # 商品描述,格式: 应用名称-商品WxPayConfig::APPID . "-" .
|
|
$input->SetBody($req->product_name); # 商品描述,格式: 应用名称-商品WxPayConfig::APPID . "-" .
|
|
$input->SetAttach($req->callbackInfo); # 透传参数
|
|
$input->SetAttach($req->callbackInfo); # 透传参数
|
|
$input->SetOut_trade_no($req->cpOrderId); # cporderidd
|
|
$input->SetOut_trade_no($req->cpOrderId); # cporderidd
|
|
- $input->SetTotal_fee($req->amount * 100); # 正式: 总价格,单位:分
|
|
|
|
-// $input->SetTotal_fee($req->amount); //*100 # 测试: 总价格,单位:分
|
|
|
|
|
|
+ $input->SetTotal_fee($req->amount * 100); # 总价格, 单位: 分
|
|
$input->SetTime_start(date("YmdHis")); # 开始时间
|
|
$input->SetTime_start(date("YmdHis")); # 开始时间
|
|
$input->SetTime_expire(date("YmdHis", time() + 600)); # 过期时间
|
|
$input->SetTime_expire(date("YmdHis", time() + 600)); # 过期时间
|
|
- $input->SetGoods_tag("test"); # 活动标记,不管
|
|
|
|
|
|
+ $input->SetGoods_tag("test"); # 活动标记, 不管
|
|
$input->SetNotify_url($req->notifyUrl); # 支付回调地址
|
|
$input->SetNotify_url($req->notifyUrl); # 支付回调地址
|
|
$input->SetTrade_type("APP"); # 交易类型,
|
|
$input->SetTrade_type("APP"); # 交易类型,
|
|
// $input->SetTrade_type("JSAPI");
|
|
// $input->SetTrade_type("JSAPI");
|