为什么一样代码回调函数接受不到
来源:11-5 打造第一个微信支付demo

fanfan_y
2018-09-06
$notify = new NativePay();
$input = new WxPayUnifiedOrder();
$input->setBody(“支付 0.01 元”);
$input->setAttach(“支付 0.01 元”);
$input->setOutTradeNo(WxPayConfig::MCHID.date(“YmdHis”));
$input->setTotalFee(“1”);
input−>setTimeStart(date("YmdHis"));//input->setTimeStart(date("YmdHis"));
//input−>setTimeStart(date("YmdHis"));//input->setTimeExpire(date(“YmdHis”, time() + 600));
$input->setGoodsTag(“QRCode”);
$input->setNotifyUrl("/index.php/index/weixinpay/notify");
$input->setTradeType(“NATIVE”);
input−>setProductId(input->setProductId(input−>setProductId(id);
写回答
3回答
-
fanfan_y
提问者
2018-09-06
这个是我之前的代码我我已经改成了外网加域名了还是不行。
00 -
singwa
2018-09-06
你回调url给的有问题,把外网域名带上吧
00 -
singwa
2018-09-06
你给的回调地址是外网能访问的地址吗?
022018-09-07
相似问题