收藏
回答

公众号商城支付发起,微信支付提示“调用微信支付JSAPI缺少参数:appid”?

【请求地址】:https://api.mch.weixin.qq.com/pay/unifiedorder

【请求数据】:<xml>

  <appid>wxc23256648d298557</appid>

  <mch_id>1602432867</mch_id>

  <nonce_str>1622155374568</nonce_str>

  <sign>E8EA8603AB631F75E748C853E15C0F0B</sign>

  <body>buy_3062021050015221001S1001</body>

  <attach>DEV1DB</attach>

  <out_trade_no>3062021050015221001S1001</out_trade_no>

  <total_fee>4990</total_fee>

  <spbill_create_ip>139.226.141.194</spbill_create_ip>

  <notify_url>https://wscmkj.com.cn/cb/wxpay</notify_url>

  <trade_type>JSAPI</trade_type>

  <openid>ojDP9wl59lv3dzqJnfI1fMOv99G8</openid>

</xml>

【响应数据】:<xml><return_code><![CDATA[SUCCESS]]></return_code>

<return_msg><![CDATA[OK]]></return_msg>

<result_code><![CDATA[SUCCESS]]></result_code>

<mch_id><![CDATA[1602432867]]></mch_id>

<appid><![CDATA[wxc23256648d298557]]></appid>

<nonce_str><![CDATA[CJObDb8D6LR0YIeG]]></nonce_str>

<sign><![CDATA[C9E8012925B5E6F82C16EAF5C3A7BAD1]]></sign>

<prepay_id><![CDATA[wx28064255100149772c0ea12964e1100000]]></prepay_id>

<trade_type><![CDATA[JSAPI]]></trade_type>

</xml>

报文看上去没问题,而且公众号appId也传过去了,我想知道哪里出错了

回答关注问题邀请回答
收藏
登录 后发表内容