收藏
回答

iframe内嵌页面调用微信公众号支付chooseWXPay无响应?

iframe内嵌页面调用微信公众号支付chooseWXPay无响应。

try
 {
                        window.wx.chooseWXPay &&
                            window.wx.chooseWXPay({
                                appId: response.data.appId,
                                timestamp: response.data.timeStamp,
                                nonceStr: response.data.nonceStr,
                                package: response.data.package,
                                signType: response.data.signType,
                                paySign: response.data.paySign,
                                success: () => {
                                    console.log('success');
                                },
                                fail: (err) => {
                                    console.log('fail', err);
                                },
                                cancel: () => {
                                    console.log('cancel');
                                },
                            });
                    } catch (err) {
                        console.log(err);
                    }
回答关注问题邀请回答
收藏
登录 后发表内容