微信公众号支付

上传者: 38366802 | 上传时间: 2019-12-21 21:38:24 | 文件大小: 2.91MB | 文件类型: zip
1. 在开通微信支付的公众号下访问 htpp://服务器地址/mainServlet 2. 修改MainServlet.java和TopayServlet.java 里面的商户参数,授权返回地址和notify_url部分即可。 3. 代码是别人的劳动成果,经自己稍微修改后测试成功,demo并没有十分的简化,大家可以做一个参考吧。如果出现签名失败,仔细检查下自己填写的appid和partnerkey是否正确。 4. 请注意:微信支付成功后的通知的url为notifyServlet,sb是返回的xml 5.最后祝大家都通过微信支付的测试。

文件下载

资源详情

[{"title":"( 63 个子文件 2.91MB ) 微信公众号支付","children":[{"title":".settings","children":[{"title":"org.eclipse.wst.jsdt.ui.superType.name <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'> 163B </span>","children":null,"spread":false},{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 112B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.container <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":".jsdtscope <span style='color:#111;'> 658B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"servlet","children":[{"title":"TopayServlet.java <span style='color:#111;'> 7.14KB </span>","children":null,"spread":false},{"title":"NotifyServlet.java <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"MainServlet.java <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false}],"spread":true},{"title":"utils","children":[{"title":"Sha1Util.java <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"GetWxOrderno.java <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false},{"title":"TenpayUtil.java <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false},{"title":"WeixinOauth2Token.java <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"CommonUtil.java <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false},{"title":"http","children":[{"title":"HttpResponse.java <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false},{"title":"HttpRequest.java <span style='color:#111;'> 3.43KB </span>","children":null,"spread":false},{"title":"HttpResultType.java <span style='color:#111;'> 703B </span>","children":null,"spread":false},{"title":"HttpClientConnectionManager.java <span style='color:#111;'> 1.99KB </span>","children":null,"spread":false},{"title":"TrustAnyTrustManager.java <span style='color:#111;'> 592B </span>","children":null,"spread":false},{"title":"MySSLSocketFactory.java <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false}],"spread":true},{"title":"MD5Util.java <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"MyX509TrustManager.java <span style='color:#111;'> 688B </span>","children":null,"spread":false},{"title":"RequestHandler.java <span style='color:#111;'> 6.48KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"WebRoot","children":[{"title":"pay.jsp <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 36B </span>","children":null,"spread":false}],"spread":true},{"title":"WEB-INF","children":[{"title":"web.xml <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"servlet","children":[{"title":"TopayServlet.class <span style='color:#111;'> 6.19KB </span>","children":null,"spread":false},{"title":"NotifyServlet.class <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"MainServlet.class <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false}],"spread":true},{"title":"utils","children":[{"title":"Sha1Util.class <span style='color:#111;'> 3.19KB </span>","children":null,"spread":false},{"title":"MyX509TrustManager.class <span style='color:#111;'> 873B </span>","children":null,"spread":false},{"title":"http","children":[{"title":"HttpClientConnectionManager.class <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false},{"title":"HttpResponse.class <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"MySSLSocketFactory.class <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"HttpResultType.class <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"TrustAnyTrustManager.class <span style='color:#111;'> 889B </span>","children":null,"spread":false},{"title":"HttpRequest.class <span style='color:#111;'> 2.59KB </span>","children":null,"spread":false}],"spread":false},{"title":"WeixinOauth2Token.class <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"CommonUtil.class <span style='color:#111;'> 3.85KB </span>","children":null,"spread":false},{"title":"GetWxOrderno.class <span style='color:#111;'> 4.95KB </span>","children":null,"spread":false},{"title":"TenpayUtil.class <span style='color:#111;'> 3.23KB </span>","children":null,"spread":false},{"title":"RequestHandler.class <span style='color:#111;'> 6.05KB </span>","children":null,"spread":false},{"title":"MD5Util.class <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"lib","children":[{"title":"ezmorph-1.0.6.jar <span style='color:#111;'> 84.46KB </span>","children":null,"spread":false},{"title":"httpcore-4.2.4.jar <span style='color:#111;'> 221.95KB </span>","children":null,"spread":false},{"title":"dom4j-1.6.1.jar <span style='color:#111;'> 306.54KB </span>","children":null,"spread":false},{"title":"commons-cli-1.0.jar <span style='color:#111;'> 29.41KB </span>","children":null,"spread":false},{"title":"commons-collections-3.2.1.jar <span style='color:#111;'> 561.90KB </span>","children":null,"spread":false},{"title":"commons-dbcp-20030825.184428.jar <span style='color:#111;'> 92.42KB </span>","children":null,"spread":false},{"title":"commons-httpclient-3.1.jar <span style='color:#111;'> 297.85KB </span>","children":null,"spread":false},{"title":"commons-beanutils-1.8.0.jar <span style='color:#111;'> 225.90KB </span>","children":null,"spread":false},{"title":"httpclient-4.2.5.jar <span style='color:#111;'> 423.21KB </span>","children":null,"spread":false},{"title":"commons-lang-2.6.jar <span style='color:#111;'> 277.56KB </span>","children":null,"spread":false},{"title":"jdom-1.0.jar <span style='color:#111;'> 149.66KB </span>","children":null,"spread":false},{"title":"commons-logging-1.1.3.jar <span style='color:#111;'> 60.60KB </span>","children":null,"spread":false},{"title":"commons-codec-1.7.jar <span style='color:#111;'> 253.52KB </span>","children":null,"spread":false},{"title":"json-lib-2.4-jdk15.jar <span style='color:#111;'> 155.39KB </span>","children":null,"spread":false},{"title":"commons-pool-1.6.jar <span style='color:#111;'> 108.51KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"index.jsp <span style='color:#111;'> 840B </span>","children":null,"spread":false},{"title":"error.jsp <span style='color:#111;'> 623B </span>","children":null,"spread":false},{"title":"aa.html <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":".mymetadata <span style='color:#111;'> 300B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明