{"id":1588,"date":"2023-03-25T19:49:04","date_gmt":"2023-03-25T11:49:04","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1588"},"modified":"2023-04-27T21:28:53","modified_gmt":"2023-04-27T13:28:53","slug":"wechat-payment-sandbox-test-record","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/25\/wechat-payment-sandbox-test-record\/","title":{"rendered":"\u5fae\u4fe1\u652f\u4ed8\u6c99\u7bb1\u6d4b\u8bd5\u91c7\u5751\u8bb0\u5f55"},"content":{"rendered":"<p>\u5fae\u4fe1\u652f\u4ed8\u9a8c\u6536\u9636\u6bb5\u53ef\u4ee5\u7528\u6c99\u76d2\u6d4b\u8bd5\u652f\u4ed8\u6d41\u7a0b<\/p>\n<p>\u6587\u6863\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/pay.weixin.qq.com\/wiki\/doc\/api\/jsapi.php?chapter=23_1\">https:\/\/pay.weixin.qq.com\/wiki\/doc\/api\/jsapi.php?chapter=23_1<\/a><\/p>\n<h2>\u57fa\u672c\u6b65\u9aa4<\/h2>\n<p><!-- more --><\/p>\n<ol>\n<li>\u6b63\u5f0f\u8bf7\u6c42\u5730\u5740\u4fee\u6539\uff0c\u589e\u52a0<code>\/sandboxnew\/<\/code><\/li>\n<li>\u6309\u6b63\u5f0f\u6d41\u7a0b\u505asign<\/li>\n<li>\u7528\u6b63\u5f0fsign\uff0c\u989d\u5916\u8c03\u7528\u00a0<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/api.mch.weixin.qq.com\/sandboxnew\/pay\/getsignkey\">https:\/\/api.mch.weixin.qq.com\/sandboxnew\/pay\/getsignkey<\/a> \u83b7\u5f97<code>sandbox_signkey<\/code><\/li>\n<li>\u7528sandbox_signkey \u66ff\u6362\u7528\u6237\u81ea\u5df1\u7684key\uff0c\u518d\u505asign\u7b7e\u540d<\/li>\n<li>\u7528\u7b2c\u4e8c\u6b21\u751f\u6210\u7684sign\u6765\u6389\u8d77\u652f\u4ed8<\/li>\n<li>\u53d1\u8d77\u652f\u4ed8\u7684\u77ac\u95f4\u5c31\u4f1a\u6709\u56de\u8c03\u901a\u77e5\uff0c\u751f\u6210\u7684\u4e8c\u7ef4\u7801\u5e76\u4e0d\u80fd\u7528<\/li>\n<\/ol>\n<h2>\u9047\u5230\u7684\u95ee\u9898<\/h2>\n<p>\uff081\uff09\u6c99\u7bb1\u9a8c\u8bc1\u7b7e\u540d\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4\u6c99\u7bb1\u7b7e\u540dkey\u662f\u5426\u6b63\u786e\uff08\u901a\u8fc7getsignkey\u8c03\u7528\u751f\u6210\uff09<\/p>\n<p>\u89e3\u51b3\uff1a\u6c99\u7bb1\u73af\u5883\u7b7e\u540d\u503c\u5fc5\u987b\u8981\u5927\u5199\uff0c\u5426\u5219\u62a5\u9519<code>\u6c99\u7bb1\u9a8c\u8bc1\u7b7e\u540d\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4\u6c99\u7bb1\u7b7e\u540dkey\u662f\u5426\u6b63\u786e\uff08\u901a\u8fc7getsignkey\u8c03\u7528\u751f\u6210\uff09<\/code><\/p>\n<p>\uff082\uff09\u6c99\u7bb1\u9a8c\u8bc1\u7b7e\u540d\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4\u6c99\u7bb1\u7b7e\u540dkey\u662f\u5426\u6b63\u786e<\/p>\n<p>\u89e3\u51b3\uff1a\u4f7f\u7528<code>sandbox_signkey<\/code>\u66ff\u6362\u7684\u662f\u7528\u6237\u8bbe\u5b9a\u7684key\u503c<\/p>\n<p>\uff083\uff09\u6c99\u7bb1\u652f\u4ed8\u91d1\u989d(xxx)\u65e0\u6548\uff0c\u8bf7\u68c0\u67e5\u9700\u8981\u9a8c\u6536\u7684case<\/p>\n<p>\u89e3\u51b3\uff1a\u91d1\u989d\u53ea\u80fd\u662f 101 \u548c 102\uff08\u5355\u4f4d\u4e3a\u5206\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5fae\u4fe1\u652f\u4ed8\u9a8c\u6536\u9636\u6bb5\u53ef\u4ee5\u7528\u6c99\u76d2\u6d4b\u8bd5\u652f\u4ed8\u6d41\u7a0b \u6587\u6863\uff1ahttps:\/\/pay.weixin.qq.com\/wiki\/d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[371],"tags":[],"class_list":["post-1588","post","type-post","status-publish","format-standard","hentry","category-wechat-pay"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1588"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1588\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}