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);
}