What should I do if "calling payment jsapi is missing parameter appid" appears on Wechat interface?
This article will explain in detail about the Wechat interface "call payment jsapi missing parameter appid", the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
"missing parameter appid for calling payment jsapi" appears on Wechat API.
Note:
@ Html.Raw (ViewBag.wxJsApiParam), / / json string
ViewBag.wxJsApiParam is a json string spelled in the background. The official example is good, just bring it over and use it. Remember not to be escaped and do not put quotation marks. Or you can just use the official example to use the aspx page.
Official example: https://pay.weixin.qq.com/wiki/doc/api/download/WxPayAPI_CS_v3.zip
Function jsApiCall () {WeixinJSBridge.invoke ('getBrandWCPayRequest',@Html.Raw (ViewBag.wxJsApiParam), / / json string function (res) {WeixinJSBridge.log (res.err_msg); if (res.err_msg=='get_brand_wcpay_request:ok') {[xss_clean] ln ("payment success");} else {alert (' payment failed'); / / alert (res.err_code +'\ r' + res.err_desc +'\ r' + res.err_msg);}}) } about Wechat interface appears "call payment jsapi missing parameter appid" to share here, I hope the above content can be helpful to you, you can learn more knowledge. If you think the article is good, you can share it for more people to see.