Comments (7)
这就是这个库存在的意义。拦截器会帮你计算签名,组装Authorization并设置到请求头中的。
from wechatpay-apache-httpclient.
@xy-peng 您说的这个拦截器在哪里?不会是SignatureExec.executeWithSignature()这个方法吧??还是需要自己实现?
from wechatpay-apache-httpclient.
准确的说,是通过扩展httpclient的责任链,实现了签名和验签相关的事宜,实现在这里
from wechatpay-apache-httpclient.
from wechatpay-apache-httpclient.
我们注意到,很多Java开发者接入微信支付是使用的apache httpclient,所以我们想尝试一种方式可以无侵入的实现签名和验签。这样我们的开发者还可以使用已有的生产框架或者代码来接入APIv3。
而httpclient提供的责任链模式,似乎是可以达到这一个目标的(欢迎开发者们反馈是不是真正达到了预期。。。)
from wechatpay-apache-httpclient.
@xy-peng 不少人在使用这个https://github.com/Wechat-Group/WxJava
开源的SDK来做微信相关的开发,对v2版本的接口支持很不错,有关v3接口的还不完善,是否会考虑协助完善下。
from wechatpay-apache-httpclient.
我们有在关注他们,他们实现的方式跟我们当前的方式很类似。多亏他们能帮我们把业务接口的支持做好 :-)
from wechatpay-apache-httpclient.
Related Issues (20)
- 对小程序支付生成的httpClient进行代理设置不生效 HOT 11
- 请问如何构造测试回调数据? HOT 10
- 不支持httpClient5版本库 HOT 1
- 如何正确初始化CloseableHttpClient?何时关闭CloseableHttpClient? HOT 3
- 使用DefaultHttpClientBuilder构造出来的HttpClient需要关闭吗? HOT 1
- 使用了定时更新平台证书功能,并且使用Verifier在调用接口时获取平台证书。但是怎么获取平台证书序列号以满足接口对header里的Wechatpay-Serial的需求呢 HOT 9
- 为什么我用certificate.getSerialNumber()获取到的序列号和正确的序列号不一样
- empty [Wechatpay-Serial] 应答的微信支付签名验证失败
- 仅签名不验签 HOT 1
- 日志打印body内容乱码 HOT 1
- 回调验签失败 HOT 2
- AutoUpdateCertificatesVerifier弃用后有其他替代方案吗 HOT 1
- No 0.4.9 in Maven Central HOT 1
- Start
- 是否提供一个Spring Boot 3.0的支持版本? HOT 4
- 【Help】使用demo中的例子上传图片返回400 badrequest HOT 4
- 支付回调验签报错 HOT 2
- 使用时Verifier没有办法初始化在springboot中 HOT 2
- 吊毛写的什么够吧文档
- 下单按照文档的格式写,遇到报错:Http头Authorization值格式错误,请参考《微信支付商户REST API签名规则》 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wechatpay-apache-httpclient.