收藏
回答

wx.requestPayment is not a function

框架类型 问题类型 操作系统 工具版本
小游戏 Bug Windows 1.06.2307260 Stable
wx.requestPayment({
     ...JSON.parse(data.OrderInfo),
    success(res) {
        cc.UIHelper.ShowMessage("支付成功!");
    },
    fail(res) {
        cc.UIHelper.ShowMessage("支付失败:{$1}", res);
    },
    complete() {},
});

无论是在开发工具中,还是安卓真机上,都会报wx.requestPayment is not a function。

后台已开通微信支付,查遍所有文档,没有找到解决方案,盼复。

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容