Git Product home page Git Product logo

Comments (4)

xy-peng avatar xy-peng commented on June 19, 2024

有此计划。Go SDK 就提供了 PrepayWithRequestPayment()

欢迎 PR。

from wechatpay-java.

aioos avatar aioos commented on June 19, 2024

周末有空会尝试下。

看上去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.

xy-peng avatar xy-peng commented on June 19, 2024

周末有空会尝试下。

欢迎👏

Java这里,可以考虑给Credential添加getSign方法,再由HttpClient封装。

我倾向于从 Config 获得 Signer,而不是从 HttpClient 中获得。提供拉起前端小程序或者调起支付的签名计算,不是 HttpClient 的职责,绕一圈并不直观。

另外,XXXService 是根据契约自动生成的,不建议改动,需要单独定义一个类。举个例子,可能是

public class JsapiServiceExtend {
  private JsapiService service;
  
  public JsapiServiceExtend(JsapiService, Signer);
}

以上是个人观点,欢迎讨论。

from wechatpay-java.

huihui-hb avatar huihui-hb commented on June 19, 2024

有此计划。Go SDK 就提供了 PrepayWithRequestPayment()

欢迎 PR。

👎 我本来想上V3,我看到这句我惊了,从新增的调用平台证书开始,我就非常怀疑微信支付api团队的技术能力。
这个java开发者的水平真是刷新了我的下限,腾讯招了实习生?

from wechatpay-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.