problem description
WeChat Pay h5 chrome cannot jump back to redirect_uri
the callback addresses of Samsung"s own browser and chrome browser are invalid and return directly to the page where the payment was initiated.
let wxPay = await axios("", {
"cmd": "ticket.buyOrder",
"params": {"ticketType": this.p, "oid": id, "addressNum": this.default, "payType": "other"}
}, "post", {"cmd": "ticket.buyOrder"})
let getUrl = await self.recharge(wxPay.price, wxPay.orderId, wxPay.addressnumber)
let url = encodeURIComponent(`http://xxx.com/-sharp/web?oid=${getUrl.out_trade_no}`);
window.location.href = `${getUrl.mweb_url}&redirect_url=${url}`
you can jump to the callback address with both uc and QQ Browser.
now I add parameters to the callback address, pay for the parameters of the query url, and pop up the window to query the payment result for the user.
I guess it"s the browser"s problem. If it"s the browser"s problem, how to solve the problem of paying the query results?