Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

计划升级大版本至1.0版本 #34

Open
2 of 5 tasks
TheNorthMemory opened this issue Jul 20, 2021 · 6 comments
Open
2 of 5 tasks

计划升级大版本至1.0版本 #34

TheNorthMemory opened this issue Jul 20, 2021 · 6 comments
Assignees
Labels
feature shall be done in planning

Comments

@TheNorthMemory
Copy link
Owner

TheNorthMemory commented Jul 20, 2021

  • 移除对axios/lib/util 内置方法的依赖
  • 刨除废弃的方法,如Hash.hmacSha256, Aes.encrypt, Aes.decrypt
  • 调整 AesGcm.encrypt, AesGcm.decrypt 型参顺序
  • 调整repo及包名,相应地调整user-agent
  • 搭建 wechatpay.js.org 作为library的主站
@TheNorthMemory TheNorthMemory added the feature shall be done in planning label Jul 20, 2021
@TheNorthMemory TheNorthMemory self-assigned this Jul 20, 2021
TheNorthMemory added a commit that referenced this issue Aug 23, 2021
TheNorthMemory added a commit that referenced this issue Aug 23, 2021
- all `Aes*` statics function can be used exported as standlone now
TheNorthMemory added a commit that referenced this issue Aug 24, 2021
@gaoyia
Copy link

gaoyia commented Nov 24, 2021

看了源码
现在错误获取不到状态码
等大佬升级!

另外

// 如果使用的node版本大于v15.6.0,则可以通过node获取证书序列号
// const { X509Certificate } = await import('crypto');
// const merchantCertificateSerial = new X509Certificate(platformCertificateInstance).serialNumber;

大佬为何不直接使用Typescript开发

@TheNorthMemory
Copy link
Owner Author

@gaoyia 做这个lib的时候,node15还没出,最低支持node10.15是为了「微信云开发」,他们给的云环境node版本太低了,高级方法暂时用不了;ts有计划做,还在学习ing

@xy-peng
Copy link

xy-peng commented Nov 25, 2021

@gaoyia 做这个lib的时候,node15还没出,最低支持node10.15是为了「微信云开发」,他们给的云环境node版本太低了,高级方法暂时用不了;ts有计划做,还在学习ing

云开发的node版本还没升级吗?

@klover2
Copy link

klover2 commented Jan 12, 2022

我做了一个关于微信api 支付的npm 包,大佬能帮我看看吗
npm url: https://www.npmjs.com/package/wechatpay-node-v3
github url :https://github.com/klover2/wechatpay-node-v3-ts

@TheNorthMemory
Copy link
Owner Author

我做了一个关于微信api 支付的npm 包,大佬能帮我看看吗 npm url: https://www.npmjs.com/package/wechatpay-node-v3 github url :https://github.com/klover2/wechatpay-node-v3-ts

我做开源的目的是为了保持学习,把这个过程的成果贡献出来籍此帮助有需要的人。

你的这款 NPM包 wechatpay-node-v3-ts 能解决支付对接问题,就是优秀的,保持多样性,提供更多选择,应该值得肯定。

如果需要给提些建议的话,建议在 主动请求返回值验签 上加强一下,目前版本1.3.0貌似看着没有,这个其实有安全隐患;Node15 已经原生支持 X509 功能,依赖项也可以缩减;async/await 用得有些多,消弱了异步编程的魅力,建议可以加强优化一下;

@klover2
Copy link

klover2 commented Jan 13, 2022

您的建议非常重要,我会在下个版本优先优化它,但是我现在没有微信商户号进行测试,所以这个时间可能会长一点,如果有人给我提pr 的话就更好不过了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature shall be done in planning
Projects
None yet
Development

No branches or pull requests

4 participants