Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-pay/gopay
微信、支付宝、通联支付、拉卡拉、PayPal、Apple 的Go版本SDK。【极简、易用的聚合支付SDK】
https://github.com/go-pay/gopay
alipay allinpay apple golang gopay lakala pay paypal saobei wechat weixin
Last synced: 15 days ago
JSON representation
微信、支付宝、通联支付、拉卡拉、PayPal、Apple 的Go版本SDK。【极简、易用的聚合支付SDK】
- Host: GitHub
- URL: https://github.com/go-pay/gopay
- Owner: go-pay
- License: apache-2.0
- Created: 2019-01-08T10:14:40.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T14:49:05.000Z (6 months ago)
- Last Synced: 2024-05-21T13:05:40.278Z (6 months ago)
- Topics: alipay, allinpay, apple, golang, gopay, lakala, pay, paypal, saobei, wechat, weixin
- Language: Go
- Homepage: https://github.com/go-pay/gopay
- Size: 5.54 MB
- Stars: 3,909
- Watchers: 44
- Forks: 688
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Support: support_note.txt
Awesome Lists containing this project
- awesomeLibrary - gopay
- my-awesome - go-pay/gopay - 10 star:4.2k fork:0.7k 微信、支付宝、通联支付、拉卡拉、PayPal、Apple 的Go版本SDK。【极简、易用的聚合支付SDK】 (Go)
README
# GoPay
### 微信、支付宝、QQ、通联支付、拉卡拉、PayPal 的 Golang 版本SDK
[![Github](https://img.shields.io/github/followers/iGoogle-ink?label=Follow&style=social)](https://github.com/iGoogle-ink)
[![Github](https://img.shields.io/github/forks/go-pay/gopay?label=Fork&style=social)](https://github.com/go-pay/gopay/fork)[![Golang](https://img.shields.io/badge/golang-1.21-brightgreen.svg)](https://golang.google.cn)
[![GoDoc](https://img.shields.io/badge/doc-pkg.go.dev-informational.svg)](https://pkg.go.dev/github.com/go-pay/gopay)
[![Go](https://github.com/go-pay/gopay/actions/workflows/go.yml/badge.svg)](https://github.com/go-pay/gopay/actions/workflows/go.yml)
[![GitHub Release](https://img.shields.io/github/v/release/go-pay/gopay)](https://github.com/go-pay/gopay/releases)
[![License](https://img.shields.io/github/license/go-pay/gopay)](https://www.apache.org/licenses/LICENSE-2.0)
[![Go Report Card](https://goreportcard.com/badge/github.com/go-pay/gopay)](https://goreportcard.com/report/github.com/go-pay/gopay)---
# 一、安装
```bash
go get -u github.com/go-pay/gopay
```#### 查看 GoPay 版本
[版本更新记录](https://github.com/go-pay/gopay/blob/main/release_note.txt)
```go
import (
"github.com/go-pay/gopay"
"github.com/go-pay/xlog"
)func main() {
xlog.Info("GoPay Version: ", gopay.Version)
}
```---
# 二、文档目录
> ### 点击查看不同支付方式的使用文档。方便的话,请留下您认可的小星星,十分感谢!
* #### [支付宝支付(V3版)](https://github.com/go-pay/gopay/blob/main/doc/alipay_v3.md)
* #### [支付宝支付](https://github.com/go-pay/gopay/blob/main/doc/alipay.md)
* #### [微信支付(V3版)](https://github.com/go-pay/gopay/blob/main/doc/wechat_v3.md)
* #### [微信支付(V2版,不推荐)](https://github.com/go-pay/gopay/blob/main/doc/wechat_v2.md)
* #### [QQ支付](https://github.com/go-pay/gopay/blob/main/doc/qq.md)
* #### [通联支付](https://github.com/go-pay/gopay/blob/main/doc/allinpay.md)
* #### [拉卡拉支付](https://github.com/go-pay/gopay/blob/main/doc/lakala.md)
* #### [Paypal支付](https://github.com/go-pay/gopay/blob/main/doc/paypal.md)
* #### [Apple支付校验](https://github.com/go-pay/gopay/blob/main/doc/apple.md)
* #### [扫呗支付](https://github.com/go-pay/gopay/blob/main/doc/saobei.md)---
# 三、其他说明
* 如需自定义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`
* 或 examples
* 接入gopay示例项目(可参考接入使用方式):[gopay-platform](https://github.com/go-pay/gopay-platform)
* 有问题请加微信群 或 关注抖音账号,加入首页粉丝群拉微信群。在此,非常感谢提出宝贵意见和反馈问题的同志们!
* 开发过程中,请尽量使用正式环境,1分钱测试法!
* 有偿承接技术咨询、开发,如需要加微信联系。
---
## 赞赏多少是您的心意,感谢支持!
微信赞赏码:
支付宝赞助码:---
## 讨论群
> 抖音关注(需要1000+粉丝量)私信获取微信群二维码抖音扫码关注:
微信群:---
## 鸣谢
> [GoLand](https://www.jetbrains.com/go/?from=gopay) A Go IDE with extended support for JavaScript, TypeScript, and Databases。
特别感谢 [JetBrains](https://www.jetbrains.com/?from=gopay) 为开源项目提供免费的 [GoLand](https://www.jetbrains.com/go/?from=gopay) 等 IDE 的授权
[](https://www.jetbrains.com/?from=gopay)> Copyright © 2000-2024 JetBrains s.r.o. JetBrains and the JetBrains logo are registered trademarks of JetBrains s.r.o.