請求引數:
<xml>
<mch_appid>xxxxxxxx</mch_appid>
<desc>提現</desc>
<mchid>xxxxxxxxxxxxx</mchid>
<nonce_str>U7W4VAYT0LYHXFSZLBEB1PBE9V1UCC13</nonce_str>
<notify_url>http://xxxxxxxxxxx.com/notify_url>
<openid>xxxxxxxxxxxxxx</openid>
<partner_trade_no>LCVRM74N1557636034118</partner_trade_no>
<spbill_create_ip>127.0.0.1</spbill_create_ip>
<amount>1</amount>
<check_name>NO_CHECK</check_name>
<re_user_name>xxx</re_user_name>
<sign>C7C01FC16EE94CE2A416A4C939953834</sign>
</xml>
請求:options = {
url: 'https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers',
method: "POST",
json: true,
headers: {
"content-type": "application/json;charset=utf-8"
},
body: formData,
key: fs.readFileSync('../server/common/file/wxpay/apiclient_key.pem'), //將微信生成的證書放入 cert目錄下
cert: fs.readFileSync('../server/common/file/wxpay/apiclient_cert.pem')
};
回傳結果:
return_code: [ 'SUCCESS' ],
return_msg: [ 'XML決議錯誤' ],
result_code: [ 'FAIL' ],
err_code: [ 'XML_ERROR' ],
err_code_des: [ 'XML決議錯誤' ]
uj5u.com熱心網友回復:
<notify_url>http://xxxxxxxxxxx.com/notify_url>這句是不是少了東西,結尾的notify_url>?
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/129911.html
標籤:微信支付
下一篇:QT5 怎么獲取設備資訊
