如何解决微信扫码支付demo php版模式二获取不到二微码串呢?
发布于 7 年前 作者 li49 10604 次浏览 来自 官方Issues

为什么我使用的微信扫码支付 php demo 模式二出错,在

function GetPayUrl($input){

        if($input->GetTrade_type() == “NATIVE”){

            try{

                $config = new WxPayConfig(); 这里的 $config 为 object(WxPayConfig)#4 (0) { }

结果就是 模式一的二微码显示正常,扫码返回 OK  , 模式二的二微码不出现,html代码是:<img alt"模式二扫码支付"src"qrcode.php?data="style"width:150px;height:150px;" />

不知哪里出错了?

所在页面是:http://www.16styler.net/e/Plugin/Wxpay/example/native.php
回到顶部