"Accept""application/json""Content-Type""application/json;charset=utf8""Wechatpay-Serial""user-agent""wxpay sdk java v1.0 ""Authorization""WECHATPAY2-SHA256-RSA2048 "+ wechatPay2Credentials.getToken(httpPost));
主体信息:
{"bank_account_info":{"account_bank":"工商银行","account_name":"fyZk8mRgbssFzh8RSH/+mDKwcR3us7HwbO80+Ntb2d6wwdUkcQAhaltIJE7gM2OTjd1Qan1w/htoCui3PDX4YLZUX2KajIpSEyrwpO7Qt5SFv7StwnPw1vUH9GjYktqyuEx+9WnPKSTO3wRnnI6N0u2tPG7/u5abpN5Vh51Brb7iBZ/Ny9RgzLxEFComkN/dc7J+N9gftzdzTvuA5okijlfFnVH71z6SL94PW++JBko+ON5Pp7afUn5Dy8HsB1/uDHFgJ13DRDkH65pKqX10kiLYscvaFQfyNjgrGYNBubmw83ol123UCJ152pXub3gmZR/gmQMM3u89ZANQaAntgQ==","account_number":"LlQsJ+Xc99Nao5D+Rr1sd68jePaLfHXDwj6ZYKWw9IhA8FAWmsfJOooNtMpkXF+2vVtfvNSrCWZrFEU+N3hIt2yHFFBdrnh2GZKuh4oxseSaWQkNLCvPdUqXk1G+GbgsVPXqS4r0dgD2swVx3UvbIbUH0BYruD68L3omssqOXSqN7IlZ/yRVe3MxglYlf4mZoELfhJ8XLE4OJ/+3scVbNxcNqKYODGhaAkoUHMQYD0EKaYylhlQP5QH1SJ9zXrUVYUxfSH/4ncFr01Ujvm/FboVFBrepNYd8P8W4BnqsW0c2Ne/BJA/VxtaxqqPYfzSRzM4GgiO+oywriFFyLRjHPw==","bank_account_type":"BANK_ACCOUNT_TYPE_PERSONAL","bank_address_code":"310000","bank_name":"中国工商银行上海分行"},"business_code":"202003031319472793111211","business_info":{"merchant_shortname":"张佳伟的小店","sales_info":{"mp_info":{"mp_appid":"wxbf1aee2f61e30314","mp_pics":["WK1PcdRKyAOZvLBvhDmRh16fo9Kqlxys9cT7r8PTAVzAVdYJqcyXJTcv7zpqTJKULajXYUHj3WmfUhVLUF2fBqa66hJezx5kutL89wqQ7r0"]},"sales_scenes_type":["SALES_SCENES_MP"]},"service_phone":"13764235230"},"contact_info":{"contact_id_number":"e65A7ZPoH3OO83TKuTYWoQkdugsz/cTvRXD46FXvoBuT6dccrVekVNsEgCSr53txc+X4n9rijUWCI1hZiOAIl3uZeDT/ja1P/2mlnQbmp63vDB2mvdBHV68rB4QngMEvpknOoM/trhCbfTE2hQnkx2tbMBkxaojfUDvKpynNN9bVrDWtDRGg6WoKRhaoytzO7YtBRt5U7Ez7Nk7dSmV6hSsWHdx7jhS3QiCZZMXL/Gv7FAb+zuBjQhe69mbjl4OTGLtmW36QVAmK7NLoUXX/9SRWTzKR1d/xdGooHyl4crfHsi3nRgwVd+2Q022dQvODaYyh8HeVNrQ31a4HwN4hDQ==","contact_name":"JOwIirs8o2uwM83pf8SXYenHG4nCfmL1K6dxkyeArQpmxdqOvhAGgeikpVhoqtZy2EuR+PQFryGWXaxKQOtPWrNYCnrFkb8k0ddlVbDgeZOJzvPg9b8Dxp3hX9HtKULYX/LErKgYP/eDJU7AadChOj5qDVF7VtheT6FLeh9hd2ZDItwSsdiIWISld+EOyw8SULIZEaU5CIhL7XCyTUuECxwTX20ork7QtxSY5cleA0e/3dc8wCzURcgHpbSdacQZIcsW8SJvZ37TzjDdjTsLJuPJaKYOgrwMFCNBSUFBUtnOqGafjxNvMHlAGY5ZhNj9xx6+EwzaMFmPscDJRbjlgw==","mobile_phone":"tp5MElS1HAZJovJNx+z78APaI3zs97FzdWPt3k8lgYN8Ucsd34skqX23+PwL61JIFFhb5tZUDYUsq0FOxqDJSZStJvrkdFKoXrEdefBxu+GDXHrBBdTmGrkuWr5BZ10JQUff+MZrtMAkLtOOqOb5uWy2XeqGzwAey2TPXOJ0hNDxgcZTx+Y/PY0LHWhp32H76r/5ZJijHE0hJjF8ocRuMFS1xw44vHJbZICXWn76dQSpvdbwRivznmyGQbhfj51GD9EfnWGD4E8HkeQSKJYFPF7oftr5A81YcYSC3T2X+JP7NCmMAuS+gosTQ9Mwa1spM8dcDmAJi61uZqPiCAsESg=="},"settlement_info":{"qualification_type":"零售批发","settlement_id":"719"},"subject_info":{"business_license_info":{"legal_person":"张佳伟","license_copy":"WK1PcdRKyAOZvLBvhDmRhxsqT45qICbzsq87DEZ0es5hSmkXo0VmPFC9j2s78U4LRZHqdTjQuIbO-c6iWyfqEDeF_owXGJsfKhAOmtBSH_8","license_number":"33048119890222121X","merchant_name":"个体户张佳伟"},"identity_info":{"id_card_info":{"card_period_begin":"2015-09-02","card_period_end":"2035-09-02","id_card_copy":"WK1PcdRKyAOZvLBvhDmRh_3TkYAF8g0CvOqEdEDgp7WaWNO5XhHCF8sXMIYD5IznqPcHXWs-1bVhWJo8XKIUXlDq2CIYQdbSjNaPljcZF9s","id_card_name":"CHuop/A5q/VtG9/KpkhRMzWe+BOl+27CTbhgJPz0u4pppiKshkNbUBd4YLwOrg0EvwJlZ9FbfuvcIQidY8FqLOYWlVEysPRL9MOWEM3bhtRwTEBlGi/ASQFw1zGiE7l5Swo2rwtnZhjT8nqpXrH8xeXA3IBlbvNmFe/DL5XFlgW5mbKd8dxYslgpzJVO5Kl6EW872BNuoewVdJzTzCFz0B+Gv3IJSKIOsbAp0FE6b/5IsoJkYtoZWkm/MT8O6nqAiYxdXx6pjJGeJdCSJ7+MRHhFTuO6bLt7OcTk1xbvl4rpnCZeKZWCOQEVo2Gv/nvjlijKEd00VRtyLzRHcqVNxw==","id_card_national":"WK1PcdRKyAOZvLBvhDmRh8q7_JDyz8Jiy-4LaArvz867fgScT-H9FTni0-eihTUiavSdbrMiyMI3IgAt-3w0QLoa2XlEKP3ZYg80xzD9bzo","id_card_number":"Dj2ET7Xv8AfGXx8HtvPV9jyvmisja9PTEVXOCFzS9URqaQLZd4zWnN5KvFLJnNYndx7capog9/orBj89GhEmz//UDEg9klQm2lxvLg+7IbqEn1qJwQrKZVVPYWU/02JafefRoui0GYcEB/cyZOYmORDE2hYGw19ZK5udwJ5Hv1+9Tv8sO4Lv5DZ/fN9+s4ltmDTHBQdu66VR4N/453T9RHFZTAS1kRcCO/85njpYRjLJo4hNZe67mmrnFtKT+udT6/3UuAVqETSPqqbx71QmwfHZvhqnjwUZAle/qe1rClBjFmGdA+BJDCSi/aoka8ObC2CBtlw3r0i3CP1UKNm/UA=="},"id_doc_type":"IDENTIFICATION_TYPE_IDCARD","owner":true},"subject_type":"SUBJECT_TYPE_INDIVIDUAL"}}
请检查:
1.确定是否是使用平台公钥加密?
2.Header中有没有指定“Wechatpay-Serial” 平台证书序列号
C#我有贴出来:https://developers.weixin.qq.com/community/develop/article/doc/000aca9b4906480daef9a62215b413