{"id":30042,"date":"2024-11-25T17:25:30","date_gmt":"2024-11-25T09:25:30","guid":{"rendered":"https:\/\/fwq.ai\/blog\/30042\/"},"modified":"2024-11-25T17:25:30","modified_gmt":"2024-11-25T09:25:30","slug":"%e5%be%ae%e4%bf%a1%e6%94%af%e4%bb%98%e5%bc%80%e5%8f%91%e4%b9%8b%e6%b2%99%e7%ae%b1%e5%af%86%e9%92%a5%e6%ad%a5%e9%aa%a4%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/30042\/","title":{"rendered":"\u5fae\u4fe1\u652f\u4ed8\u5f00\u53d1\u4e4b\u6c99\u7bb1\u5bc6\u94a5\u6b65\u9aa4\u8be6\u89e3"},"content":{"rendered":"<p>\u4e00\u3001\u4eff\u771f\u6d4b\u8bd5\u7cfb\u7edf<\/p>\n<p>\u4e3a\u964d\u4f4e\u5546\u6237\u6d4b\u8bd5\u95e8\u69db\uff0c\u5fae\u4fe1\u652f\u4ed8\u56e2\u961f\u5f00\u53d1\u4e86\u4e00\u5957\u72ec\u7acb\u7684\u4eff\u771f\u6d4b\u8bd5\u7cfb\u7edf\u3002\u8be5\u7cfb\u7edf\u6839\u636e\u9a8c\u6536\u7528\u4f8b\u91d1\u989d\u7684\u4e0d\u540c\u8fd4\u56de\u4e0d\u540c\u7684\u54cd\u5e94\u62a5\u6587\uff0c\u4ee5\u6ee1\u8db3\u5546\u6237\u6b63\u5e38\u529f\u80fd\u6d4b\u8bd5\u3001\u5b89\u5168\/\u5f02\u5e38\u6d4b\u8bd5\u53ca\u6027\u80fd\u6d4b\u8bd5\u7684\u9700\u6c42\u3002<\/p>\n<p>&nbsp;<img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/57b4ff8f07fe75a26fc05e32e124f2f5-0.png\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u652f\u4ed8\u5f00\u53d1\u4e4b\u6c99\u7bb1\u5bc6\u94a5\u6b65\u9aa4\u8be6\u89e3\u63d2\u56fe\" alt=\"\u5fae\u4fe1\u652f\u4ed8\u5f00\u53d1\u4e4b\u6c99\u7bb1\u5bc6\u94a5\u6b65\u9aa4\u8be6\u89e3\u63d2\u56fe\" \/><\/p>\n<p style=\"text-align: center\">\u56fe1 \u5fae\u4fe1\u652f\u4ed8\u4eff\u771f\u6d4b\u8bd5\u7cfb\u7edf<\/p>\n<p>\u56fe1\u4e3a\u5fae\u4fe1\u652f\u4ed8\u4eff\u771f\u6d4b\u8bd5\u7cfb\u7edf\uff08\u540e\u7b80\u79f0\u4eff\u771f\u7cfb\u7edf\uff09\u7684\u7b80\u5316\u539f\u7406\u56fe\u3002\u4eff\u771f\u7cfb\u7edf\u7684\u534f\u8bae\u4e0e\u6b63\u5f0fAPI\u5b8c\u5168\u76f8\u540c\u3002\u5546\u6237\u5f00\u53d1\u8005\u53ea\u9700\u5c06\u6b63\u5f0fAPI\u7684\u8c03\u7528URL\u589e\u52a0\u4e00\u5c42sandboxnew\u8def\u5f84\uff0c\u5373\u53ef\u5bf9\u63a5\u5230\u4eff\u771f\u7cfb\u7edf\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u5237\u5361\u652f\u4ed8URL\uff1aapi.mch.weixin.qq.com\/pay\/micropay<\/p>\n<p>\u53d8\u66f4\u4e3a\uff1aapi.mch.weixin.qq.com\/sandboxnew\/pay\/micropay\u3002<\/p>\n<p>\u4eff\u771f\u7cfb\u7edf\u4e0e\u751f\u4ea7\u73af\u5883\u5b8c\u5168\u72ec\u7acb\uff0c\u5305\u62ec\u5b58\u50a8\u5c42\u3002\u5546\u6237\u5728\u4eff\u771f\u7cfb\u7edf\u6240\u505a\u7684\u6240\u6709\u4ea4\u6613\uff08\u5982\u4e0b\u5355\u3001\u652f\u4ed8\u3001\uff09\u5747\u4e3a\u65e0\u8d44\u91d1\u6d41\u7684\u5047\u6570\u636e\uff0c\u5373\uff1a\u7528\u6237\u65e0\u9700\u771f\u5b9e\u6263\u6b3e\uff0c\u5546\u6237\u4e5f\u4e0d\u4f1a\u6709\u8d44\u91d1\u5165\u8d26\u3002\u4ee3\u91d1\u5238\u540c\u7406\uff0c\u6c99\u7bb1\u73af\u5883\u4e2d\u65e0\u9700\u5546\u6237\u771f\u5b9e\u5236\u5238\u4e0e\u53d1\u5238\uff0c\u4ea6\u4e0d\u4f1a\u51fa\u73b0\u771f\u5b9e\u6263\u5238\u60c5\u51b5\u3002\u9a8c\u6536\u4eff\u771f\u6d4b\u8bd5\u7cfb\u7edf\u7684API\u9a8c\u7b7e\u5bc6\u94a5\u9700\u4eceAPI\u83b7\u53d6:<\/p>\n<p><strong>\u83b7\u53d6\u9a8c\u7b7e\u79d8\u94a5API\uff1a<\/strong><\/p>\n<table style=\"width: 890px;border-spacing: 0px;border-color: #e7e7eb;background-image: initial;background-attachment: initial;background-size: initial;background-position: initial;background-repeat: initial\">\n<tbody>\n<tr>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;background: #f4f5f9\">\u8bf7\u6c42Url<\/th>\n<td style=\"margin: 0px;padding: 8px 15px\" width=\"85%\">api.mch.weixin.qq.com\/sandboxnew\/pay\/getsignkey<\/td>\n<\/tr>\n<tr>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;background: #f4f5f9\">\u662f\u5426\u9700\u8981\u8bc1\u4e66<\/th>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u5426<\/td>\n<\/tr>\n<tr>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;background: #f4f5f9\">\u8bf7\u6c42\u65b9\u5f0f<\/th>\n<td style=\"margin: 0px;padding: 8px 15px\">POST<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\uff1a<\/strong><\/p>\n<table style=\"width: 890px;border-spacing: 0px;border-color: #e7e7eb;background-image: initial;background-attachment: initial;background-size: initial;background-position: initial;background-repeat: initial\">\n<tbody>\n<tr>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 100px;background: #f4f5f9\">\u5b57\u6bb5\u540d<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 100px;background: #f4f5f9\">\u5b57\u6bb5<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 45px;background: #f4f5f9\">\u5fc5\u586b<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 158px;background: #f4f5f9\">\u793a\u4f8b\u503c<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 92px;background: #f4f5f9\">\u7c7b\u578b<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;background: #f4f5f9\">\u8bf4\u660e<\/th>\n<\/tr>\n<tr>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u5546\u6237\u53f7<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">mch_id<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u662f<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">1305638280<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">String(32)<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u5fae\u4fe1\u652f\u4ed8\u5206\u914d\u7684\u5fae\u4fe1\u5546\u6237\u53f7<\/td>\n<\/tr>\n<tr>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u968f\u673a <\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">nonce_str<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u662f<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">5K8264ILTKCH16CQ2502SI8ZNMTM67VS<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">String(32)<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u968f\u673a\u5b57\u7b26\u4e32\uff0c\u4e0d\u957f\u4e8e32\u4f4d<\/td>\n<\/tr>\n<tr>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u7b7e\u540d<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">sign<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u662f<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">5K8264ILTKCH16CQ2502SI8ZNMTM67VS<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">String(32)<\/td>\n<td style=\"margin: 0px;padding: 8px 15px\">\u7b7e\u540d\u503c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong><br \/>\u8fd4\u56de\u53c2\u6570\uff1a<\/strong><\/p>\n<table style=\"width: 890px;border-spacing: 0px;border-color: #e7e7eb;background-image: initial;background-attachment: initial;background-size: initial;background-position: initial;background-repeat: initial\">\n<tbody>\n<tr>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 100px;background: #f4f5f9\">\u5b57\u6bb5\u540d<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 100px;background: #f4f5f9\">\u5b57\u6bb5<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 45px;background: #f4f5f9\">\u5fc5\u586b<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 158px;background: #f4f5f9\">\u793a\u4f8b\u503c<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 92px;background: #f4f5f9\">\u7c7b\u578b<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;background: #f4f5f9\">\u8bf4\u660e<\/th>\n<\/tr>\n<tr>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u8fd4\u56de <\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">return_code<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u662f<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">SUCCESS<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">String(16)<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">SUCCESS\/FAIL&nbsp;\u6b64\u5b57\u6bb5\u662f\u901a\u4fe1\u6807\u8bc6\uff0c\u975e\u4ea4\u6613\u6807\u8bc6<\/td>\n<\/tr>\n<tr>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u8fd4\u56de\u4fe1\u606f<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">return_msg<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u5426<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u7b7e\u540d\u5931\u8d25<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">String(128)<\/td>\n<td style=\"margin: 0px;padding: 8px 15px\">\u8fd4\u56de\u4fe1\u606f\uff0c\u5982\u975e\u7a7a\uff0c\u4e3a\u9519\u8bef\u539f\u56e0&nbsp;\uff0c\u7b7e\u540d\u5931\u8d25&nbsp;\uff0c\u53c2\u6570\u683c\u5f0f\u6821\u9a8c\u9519\u8bef<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 0px 0px 5px;padding: 0px\">\u4ee5\u4e0b\u5b57\u6bb5\u5728return_code \u4e3aSUCCESS\u7684\u65f6\u6709\u8fd4\u56de\u3002<\/p>\n<table style=\"width: 890px;border-spacing: 0px;border-color: #e7e7eb;background-image: initial;background-attachment: initial;background-size: initial;background-position: initial;background-repeat: initial\">\n<tbody>\n<tr>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 100px;background: #f4f5f9\">\u5b57\u6bb5\u540d<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 100px;background: #f4f5f9\">\u5b57\u6bb5<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 45px;background: #f4f5f9\">\u5fc5\u586b<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 158px;background: #f4f5f9\">\u793a\u4f8b\u503c<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;width: 92px;background: #f4f5f9\">\u7c7b\u578b<\/th>\n<th style=\"margin: 0px;padding: 8px 15px;font-weight: 400;border-bottom-color: #e7e7eb;background: #f4f5f9\">\u8bf4\u660e<\/th>\n<\/tr>\n<tr>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u5546\u6237\u53f7<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">mch_id<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u662f<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">1305638280<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">String(32)<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u5fae\u4fe1\u652f\u4ed8\u5206\u914d\u7684\u5fae\u4fe1\u5546\u6237\u53f7<\/td>\n<\/tr>\n<tr>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u6c99\u7bb1\u5bc6\u94a5<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">sandbox_signkey<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u5426<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">013467007045764<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">String(32)<\/td>\n<td style=\"margin: 0px;padding: 8px 15px;border-bottom-color: #e7e7eb\">\u8fd4\u56de\u7684\u6c99\u7bb1\u5bc6\u94a5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 0px 0px 5px;padding: 0px;color: #222222;line-height: 22.4px\">\u5546\u6237\u63a5\u5165\u4eff\u771f\u7cfb\u7edf\u7684\u4ea4\u4e92\u6d41\u7a0b\u793a\u4f8b\uff1a&nbsp;<br \/>1. \u5546\u6237\u53d1\u8d77\u5237\u5361\u652f\u4ed8\u8bf7\u6c42\uff0c\u4f7f\u7528POST\u65b9\u5f0f\u8c03\u7528 api.mch.weixin.qq.com\/<span style=\"color: red\">sandboxnew<\/span>\/pay\/micropay&nbsp;<br \/>2. \u5e26<span style=\"color: red\">sandboxnew<\/span>&nbsp;\u7684https\u8bf7\u6c42\u4f1a\u88abnginx\u5230\u4eff\u771f\u7cfb\u7edf\u3002\u4eff\u771f\u7cfb\u7edf\u6839\u636e\u652f\u4ed8\u91d1\u989d\uff08total_fee\u5b57\u6bb5\uff09\u8fd4\u56de\u9884\u671f\u62a5\u6587\u7ed9\u5546\u6237\u3002\u540c\u65f6\uff0c\u843d\u5730\u8be5\u7b14\u8bf7\u6c42\u6570\u636e\uff1b&nbsp;<br \/>3. \u5546\u6237\u53d1\u8d77\u67e5\u5355\uff0c\u8c03\u7528 api.mch.weixin.qq.com\/<span style=\"color: red\">sandboxnew<\/span>\/pay\/orderquery\uff0c\u5e26\u4e0a\u5fae\u4fe1\u8ba2\u5355\u53f7\uff08transaction_id\uff09\u6216\u5546\u6237\u5185\u90e8\u5355\u53f7\uff08out_trade_no\uff09\uff1b&nbsp;<br \/>4. \u4eff\u771f\u7cfb\u7edf\u6536\u5230\u67e5\u5355\u8bf7\u6c42\u540e\uff0c\u6839\u636e\u5355\u53f7\u53ca\u91d1\u989d\u8fd4\u56de\u9884\u671f\u7684\u67e5\u5355\u7ed3\u679c\u7ed9\u5546\u6237\uff1b&nbsp;<br \/>5. \u5546\u6237\u4e0b\u8f7d\u5bf9\u8d26\u5355\uff0c\u8c03\u7528 api.mch.weixin.qq.com\/<span style=\"color: red\">sandboxnew<\/span>\/pay\/downloadbill\uff0c\u4eff\u771f\u7cfb\u7edf\u8fd4\u56de\u56fa\u5b9a\u7684\u8d26\u5355\u683c\u5f0f\u7ed9\u5546\u6237\u3002\u6ce8\uff1a\u8d26\u5355\u5185\u5bb9\u4e0d\u4e00\u5b9a\u4e0e\u5546\u6237\u5728\u4eff\u771f\u7cfb\u7edf\u4ea7\u751f\u7684\u4ea4\u6613\u5b8c\u5168\u76f8\u540c\u3002<\/p>\n<h2>\u4e8c\u3001\u6c99\u7bb1\u5bc6\u94a5<\/h2>\n<p>\u4f7f\u7528\u65b9\u500d\u5de5\u4f5c\u5ba4\u5fae\u4fe1\u652f\u4ed8\u5168\u80fd\u7c7b\uff0c\u51e0\u884c\u4ee3\u7801\u5373\u53ef\u5b9e\u73b0<\/p>\n<pre>\/\/1.5 \u6c99\u7bb1\u5bc6\u94a5$obj = array();$obj['mch_id'] = MCHID;$url = 'https:\/\/api.mch.weixin.qq.com\/sandboxnew\/pay\/getsignkey';$wxHongBaoHelper = new WxPay();$data = $wxHongBaoHelper-&gt;wxpay($url, $obj, false);$res = $wxHongBaoHelper-&gt;xmlToArray($data);<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd4\u56de\u7ed3\u679c\u5982\u4e0b<\/p>\n<pre>array(3) {\r\n  [\"return_code\"]=&gt;  string(7) \"SUCCESS\"\r\n  [\"return_msg\"]=&gt;  string(2) \"ok\"\r\n  [\"sandbox_signkey\"]=&gt;  string(32) \"4d827419cb511d8f6ccc35d574ff1f7b\"}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h4>\u4eff\u771f\u6d4b\u8bd5\u7cfb\u7edf<\/h4>\n<p style=\"margin: 0px 0px 5px;padding: 0px;text-indent: 26px;font-family:\">\u4e3a\u964d\u4f4e\u5546\u6237\u6d4b\u8bd5\u95e8\u69db\uff0c\u5fae\u4fe1\u652f\u4ed8\u56e2\u961f\u5f00\u53d1\u4e86\u4e00\u5957\u72ec\u7acb\u7684\u4eff\u771f\u6d4b\u8bd5\u7cfb\u7edf\u3002\u8be5\u7cfb\u7edf\u6839\u636e\u9a8c\u6536\u7528\u4f8b\u91d1\u989d\u7684\u4e0d\u540c\u8fd4\u56de\u4e0d\u540c\u7684\u54cd\u5e94\u62a5\u6587\uff0c\u4ee5\u6ee1\u8db3\u5546\u6237\u6b63\u5e38\u529f\u80fd\u6d4b\u8bd5\u3001\u5b89\u5168\/\u5f02\u5e38\u6d4b\u8bd5\u53ca\u6027\u80fd\u6d4b\u8bd5\u7684\u9700\u6c42\u3002<\/p>\n<p style=\"margin: 0px 0px 5px;padding: 0px;text-indent: 26px;font-family:\">\u3010\u76f8\u5173\u63a8\u8350\u3011<\/p>\n<p style=\"margin: 0px 0px 5px;padding: 0px;text-indent: 26px;font-family:\">1.<\/p>\n<p style=\"margin: 0px 0px 5px;padding: 0px;text-indent: 26px;font-family:\">2.<\/p>\n<p style=\"margin: 0px 0px 5px;padding: 0px;text-indent: 26px;font-family:\"><\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5fae\u4fe1\u652f\u4ed8\u5f00\u53d1\u4e4b\u6c99\u7bb1\u5bc6\u94a5\u6b65\u9aa4\u8be6\u89e3\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u4eff\u771f\u6d4b\u8bd5\u7cfb\u7edf \u4e3a\u964d\u4f4e\u5546\u6237\u6d4b\u8bd5\u95e8\u69db\uff0c\u5fae\u4fe1\u652f\u4ed8\u56e2\u961f\u5f00\u53d1\u4e86\u4e00\u5957\u72ec\u7acb\u7684\u4eff\u771f\u6d4b\u8bd5\u7cfb\u7edf\u3002\u8be5\u7cfb\u7edf\u6839\u636e\u9a8c\u6536\u7528\u4f8b\u91d1\u989d\u7684\u4e0d\u540c\u8fd4\u56de\u4e0d\u540c\u7684\u54cd\u5e94\u62a5\u6587\uff0c\u4ee5\u6ee1\u8db3\u5546\u6237\u6b63\u5e38\u529f\u80fd\u6d4b\u8bd5\u3001\u5b89\u5168\/\u5f02\u5e38\u6d4b\u8bd5\u53ca\u6027\u80fd\u6d4b\u8bd5\u7684\u9700\u6c42\u3002 &nbsp; \u56fe1 \u5fae\u4fe1\u652f\u4ed8\u4eff\u771f\u6d4b\u8bd5\u7cfb\u7edf \u56fe1\u4e3a\u5fae\u4fe1\u652f\u4ed8\u4eff\u771f\u6d4b\u8bd5\u7cfb\u7edf\uff08\u540e\u7b80\u79f0\u4eff\u771f\u7cfb\u7edf\uff09\u7684\u7b80\u5316\u539f\u7406\u56fe\u3002\u4eff\u771f\u7cfb\u7edf\u7684\u534f\u8bae\u4e0e\u6b63\u5f0fAPI\u5b8c\u5168\u76f8\u540c\u3002\u5546\u6237\u5f00\u53d1\u8005\u53ea\u9700\u5c06\u6b63\u5f0fAPI\u7684\u8c03\u7528URL\u589e\u52a0\u4e00\u5c42sandboxnew\u8def\u5f84\uff0c\u5373\u53ef\u5bf9\u63a5\u5230\u4eff\u771f\u7cfb\u7edf\u3002 \u4f8b\u5982\uff0c\u5237\u5361\u652f\u4ed8URL\uff1aapi.mch.weixin.qq.com\/pay\/micropay \u53d8\u66f4\u4e3a\uff1aapi.mch.weixin.qq.com\/sandboxnew\/pay\/micropay\u3002 \u4eff\u771f\u7cfb\u7edf\u4e0e\u751f\u4ea7\u73af\u5883\u5b8c\u5168\u72ec\u7acb\uff0c\u5305\u62ec\u5b58\u50a8\u5c42\u3002\u5546\u6237\u5728\u4eff\u771f\u7cfb\u7edf\u6240\u505a\u7684\u6240\u6709\u4ea4\u6613\uff08\u5982\u4e0b\u5355\u3001\u652f\u4ed8\u3001\uff09\u5747\u4e3a\u65e0\u8d44\u91d1\u6d41\u7684\u5047\u6570\u636e\uff0c\u5373\uff1a\u7528\u6237\u65e0\u9700\u771f\u5b9e\u6263\u6b3e\uff0c\u5546\u6237\u4e5f\u4e0d\u4f1a\u6709\u8d44\u91d1\u5165\u8d26\u3002\u4ee3\u91d1\u5238\u540c\u7406\uff0c\u6c99\u7bb1\u73af\u5883\u4e2d\u65e0\u9700\u5546\u6237\u771f\u5b9e\u5236\u5238\u4e0e\u53d1\u5238\uff0c\u4ea6\u4e0d\u4f1a\u51fa\u73b0\u771f\u5b9e\u6263\u5238\u60c5\u51b5\u3002\u9a8c\u6536\u4eff\u771f\u6d4b\u8bd5\u7cfb\u7edf\u7684API\u9a8c\u7b7e\u5bc6\u94a5\u9700\u4eceAPI\u83b7\u53d6: \u83b7\u53d6\u9a8c\u7b7e\u79d8\u94a5API\uff1a \u8bf7\u6c42Url api.mch.weixin.qq.com\/sandboxnew\/pay\/getsignkey \u662f\u5426\u9700\u8981\u8bc1\u4e66 \u5426 \u8bf7\u6c42\u65b9\u5f0f POST \uff1a \u5b57\u6bb5\u540d \u5b57\u6bb5 \u5fc5\u586b \u793a\u4f8b\u503c \u7c7b\u578b \u8bf4\u660e \u5546\u6237\u53f7 mch_id \u662f 1305638280 String(32) \u5fae\u4fe1\u652f\u4ed8\u5206\u914d\u7684\u5fae\u4fe1\u5546\u6237\u53f7 \u968f\u673a nonce_str \u662f 5K8264ILTKCH16CQ2502SI8ZNMTM67VS String(32) \u968f\u673a\u5b57\u7b26\u4e32\uff0c\u4e0d\u957f\u4e8e32\u4f4d \u7b7e\u540d sign \u662f 5K8264ILTKCH16CQ2502SI8ZNMTM67VS String(32) \u7b7e\u540d\u503c \u8fd4\u56de\u53c2\u6570\uff1a \u5b57\u6bb5\u540d \u5b57\u6bb5 \u5fc5\u586b \u793a\u4f8b\u503c \u7c7b\u578b \u8bf4\u660e \u8fd4\u56de return_code \u662f SUCCESS String(16) SUCCESS\/FAIL&nbsp;\u6b64\u5b57\u6bb5\u662f\u901a\u4fe1\u6807\u8bc6\uff0c\u975e\u4ea4\u6613\u6807\u8bc6 \u8fd4\u56de\u4fe1\u606f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-30042","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=30042"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30042\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=30042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=30042"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=30042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}