dengbiao af7f1b9aac | 1 month ago | |
---|---|---|
.. | ||
.github | 1 month ago | |
alipay | 1 month ago | |
allinpay | 1 month ago | |
apple | 1 month ago | |
doc | 1 month ago | |
examples | 1 month ago | |
lakala | 1 month ago | |
paypal | 1 month ago | |
pkg | 1 month ago | |
1 month ago | ||
saobei | 1 month ago | |
1 month ago | ||
.gitignore | 1 month ago | |
LICENSE | 1 month ago | |
README.md | 1 month ago | |
body_map.go | 1 month ago | |
body_map_test.go | 1 month ago | |
constant.go | 1 month ago | |
error.go | 1 month ago | |
go.mod | 1 month ago | |
go.sum | 1 month ago | |
gopay_test.go | 1 month ago | |
logo.png | 1 month ago | |
release_note.txt | 1 month ago | |
support_note.txt | 1 month ago |
go get -u github.com/go-pay/gopay
import (
"github.com/go-pay/gopay"
"github.com/go-pay/xlog"
)
func main() {
xlog.Info("GoPay Version: ", gopay.Version)
}
点击查看不同支付方式的使用文档。方便的话,请留下您认可的小星星,十分感谢!
如需自定义Log输出,New Client 后,调用 client.SetLogger()
方法设置自定义Logger,自定义Logger实现 xlog.XLogger
interface即可。
各支付方式接入,请仔细查看 xxx_test.go
使用方式
gopay/wechat/v3/client_test.go
gopay/alipay/v3/client_test.go
gopay/alipay/client_test.go
gopay/qq/client_test.go
gopay/allinpay/client_test.go
gopay/lakala/client_test.go
gopay/paypal/client_test.go
gopay/apple/verify_test.go
接入gopay示例项目(可参考接入使用方式):gopay-platform
有问题请加微信群 或 抖音关注并私信拉微信群。在此,非常感谢提出宝贵意见和反馈问题的同志们!
开发过程中,请尽量使用正式环境,1分钱测试法!
有偿承接技术咨询、开发,如需要加微信联系。
微信赞赏码: 支付宝赞助码:
抖音关注(需要1000+粉丝量)私信获取微信群二维码
抖音关注私信拉群: 微信群:
GoLand A Go IDE with extended support for JavaScript, TypeScript, and Databases。
特别感谢 JetBrains 为开源项目提供免费的 GoLand 等 IDE 的授权
Copyright © 2000-2024 JetBrains s.r.o. JetBrains and the JetBrains logo are registered trademarks of JetBrains s.r.o.