微信支付小程序支付,c#调起统一下单,appid与openid不匹配

微信支付 文章 2021-03-16 16:21 620 0 全屏看文

AI助手支持GPT4.0

微信支付小程序支付,c#调起统一下单,appid与openid不匹配Wechat payment applet payment, c# call up unified order, appid and openid do not match

微信支付小程序支付,c#调起统一下单,appid与openid不匹配

我用的appid是小程序的appid,调起的是JSAPI支付,openid是前端通过uniapp中的一键登录获取到的,所以应该是小程序的openid,但是还是提示openid和appid不匹配,该怎么解决呢

The appid I use is the appid of the small program, which is called jsapi payment. The openid is obtained by the front end through one click login in the uniapp, so it should be the openid of the small program, but it still prompts that the openid and appid do not match. How can I solve this problem

回答:

跨商通:

目测原因:

1、你们统一下单所用的appid不是小程序的appid。

2、appid用对了,但是openid却不是小程序的。

缺氧:

appid:wxdb7884c0c0264950

openid:oRrdQt1zFWGpDmd8tbE6HXWd3HlA

青寒:

所以应该是小程序的openid

但根据报错结果看,显示不是对应的。

建议查一下日志信息,看看统一下单的最终参数都是什么,再检查一下你登录小程序后的openid是多少,比对检查。

还坚持认为自己这边没问题的话,可以把APPID和openid放在你帖子里,坐等官方过来打脸。

-EOF-

AI助手支持GPT4.0