the official account of Wechat has been used for payment before. You need to confirm the authorization and then get the openid to call wx-jssdk for WeChat Pay. The scene must be in Wechat.
the current situation is that Wechat may also be in the browser, but enter the account password to log in, do not rely on Wechat authorization, can not get openid, so can not directly call Wechat official account to pay. We can only rely on Wechat H5 payment, but the official H5 payment case is that WeChat Pay can only be aroused through deeplink outside Wechat. If you are in Wechat, please open it in a browser outside Wechat. Then the problem comes
I am in Wechat, enter the account password to log in, there is no openid, so I cannot use the official account to pay, but H5 payment also indicates that it can only be used outside Wechat"s browser, so how can I solve this situation?