Home  >  Article  >  Backend Development  >  "sub_appid and sub_openid not match" problem, but can openid be obtained?

"sub_appid and sub_openid not match" problem, but can openid be obtained?

WBOY
WBOYOriginal
2016-12-05 13:44:092392browse

Using the WeChat payment interface in Tonglian Payment, after sending the parameters, "sub_appid and sub_openid not match" is returned. According to the instruction document, the reason is that the method of obtaining openid is incorrect. However, after checking the source code, it was found that openid was also obtained through authorization. , and it can indeed be printed. In the background configuration, I also modified the values ​​​​of the official account appId and appSecret, and added my own WeChat to the official account as a test account (note: the official account inside is also a test account, and the official account is still (has not yet come down), what other possible reasons could it be?

Reply content:

Using the WeChat payment interface in Tonglian Payment, after sending the parameters, it returns "sub_appid and sub_openid not match". According to the instruction document, the reason is that the method of obtaining openid is incorrect. However, after checking the source code, I found that openid was also obtained through authorization. , and it can indeed be printed. In the background configuration, I also modified the values ​​​​of the official account appId and appSecret, and added my own WeChat to the official account as a test account (note: the official account inside is also a test account, and the official account is still (has not yet come down), what other possible reasons could it be?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn