上线金柚产品
This commit is contained in:
@@ -43,4 +43,21 @@ class Wxpay
|
||||
$url2 = $result["code_url"];
|
||||
return $url2;
|
||||
}
|
||||
|
||||
public function jinyou_pay($param) {
|
||||
$notify = new \NativePay();
|
||||
$input = new \WxPayUnifiedOrder();
|
||||
$input->SetBody("购买水滴");
|
||||
$input->SetOut_trade_no($param['order_no']);
|
||||
$input->SetTotal_fee($param['money']);
|
||||
$input->SetTime_start(date("YmdHis"));
|
||||
$input->SetTime_expire(date("YmdHis", time() + 600));
|
||||
$input->SetNotify_url("http://php-api.juip.com/common/wxpay/jinyouwxpayverify");
|
||||
$input->SetTrade_type("NATIVE");
|
||||
|
||||
$result = $notify->GetPayUrl($input);
|
||||
|
||||
$url2 = $result["code_url"];
|
||||
return $url2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user