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

支付宝 V3 协议接口自生成 SDK,供参考~ #415

Open
whrss9527 opened this issue Aug 21, 2024 · 1 comment
Open

支付宝 V3 协议接口自生成 SDK,供参考~ #415

whrss9527 opened this issue Aug 21, 2024 · 1 comment

Comments

@whrss9527
Copy link

支付宝提供了遵循OpenAPI 规范的 OpenAPI 描述文件,可以根据 OpenAPI 描述文件来生成对应的 OpenAPI 文档、SDK 和自动测试工具等等。

目前,支付宝仅提供了 Java、PHP、Node.js 版本的 SDK,其他语言则需要开发者自行生成,生成方式使用 openapi 提供的代码生成工具 OpenAPI Generator。

生成代码需要对 mustache 模板进行修改,以适配支付宝的加验签、加解密等的规则,我完善了 golang 的模板,可以生成 Go 语言的 SDK 代码。

对应生成的 golang SDK 代码,在这里 go-alipay-sdk-v3

@iGoogle-ink
Copy link
Member

感谢,有空我研究一下

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

No branches or pull requests

2 participants