Comments (4)
有此计划。Go SDK 就提供了 PrepayWithRequestPayment()。
欢迎 PR。
from wechatpay-java.
周末有空会尝试下。
看上去go sdk给client增加了singer。
// Client 微信支付API v3 基础 Client
type Client struct {
httpClient *http.Client
credential auth.Credential
validator auth.Validator
signer auth.Signer
cipher cipher.Cipher
}
Java这里,可以考虑给Credential添加getSign方法,再由HttpClient封装。
from wechatpay-java.
周末有空会尝试下。
欢迎👏
Java这里,可以考虑给Credential添加getSign方法,再由HttpClient封装。
我倾向于从 Config
获得 Signer
,而不是从 HttpClient 中获得。提供拉起前端小程序或者调起支付的签名计算,不是 HttpClient 的职责,绕一圈并不直观。
另外,XXXService
是根据契约自动生成的,不建议改动,需要单独定义一个类。举个例子,可能是
public class JsapiServiceExtend {
private JsapiService service;
public JsapiServiceExtend(JsapiService, Signer);
}
以上是个人观点,欢迎讨论。
from wechatpay-java.
有此计划。Go SDK 就提供了 PrepayWithRequestPayment()。
欢迎 PR。
👎 我本来想上V3,我看到这句我惊了,从新增的调用平台证书开始,我就非常怀疑微信支付api团队的技术能力。
这个java开发者的水平真是刷新了我的下限,腾讯招了实习生?
from wechatpay-java.
Related Issues (20)
- 写**的个巴子,多个同名类,你是有病还是走关系进去的。 HOT 2
- SYSTEM_ERROR 系统繁忙,请稍后重试 HOT 1
- 为什么和官方文档不一样??? https://pay.weixin.qq.com/wiki/doc/apiv3/open/pay/chapter2_8_2.shtml HOT 1
- 网站接了微信登录和支付接口,请问手机端打开网站如何进行微信扫码登录和支付呢? HOT 2
- wechatpay-java合单支付 HOT 1
- 如何接入服务商平台? HOT 1
- 使用自动更新平台证书的RSA配置时,如果项目关闭以后下次启动会不会是重复的下载任务
- 支付成功回调后,出现极个别支付单解签失败的情况 HOT 2
- 将pem文件放到resources下,RSAAutoCertificateConfig无法读取到配置文件 HOT 1
- 一个商户号只能初始化一个RSAAutoCertificateConfig 如果商户号参数发生变化 怎么重载RSAAutoCertificateConfig呢
- 普通商户分账 https://api.mch.weixin.qq.com/secapi/pay/profitsharing HOT 1
- JsapiServiceExtension的prepayWithRequestPayment预下单接口 HOT 2
- 总是提示验签失败 HOT 2
- 缺少NATIVE 下单通知响应相关API,可以参考统一下单支付成功的通知。
- 沙箱环境问题 HOT 1
- privateKeyPath 能不能动态加载多个不同的文件 比如多个商户号多个证书文件 HOT 2
- 你们这Java Bean就不能合并提取一下么,一个名字一大堆,关键接口都是同一个 HOT 1
- 文档回调通知代码错误 HOT 1
- JsapiServiceExtension能添加static修饰成全局变量吗?是否线程安全? HOT 2
- 付款码支付推荐用3.0的SDK,结果SDK里面压根儿就没包含付款码的请求
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-java.