{"id":37985058,"url":"https://github.com/fastwego/wxpay","last_synced_at":"2026-01-16T18:38:24.870Z","repository":{"id":57538281,"uuid":"286375613","full_name":"fastwego/wxpay","owner":"fastwego","description":"[微信支付] A fast wxpay(v2) development sdk written in Golang","archived":false,"fork":false,"pushed_at":"2020-11-13T03:10:43.000Z","size":142,"stargazers_count":31,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T14:05:21.770Z","etag":null,"topics":["fastwego","wechat","wechatpay","weixin","wxpay"],"latest_commit_sha":null,"homepage":"https://fastwego.dev","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fastwego.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://public.zsxq.com/groups/48415121824218.html","https://pic2.zhimg.com/80/v2-6b84f07b309b6e1ad1b3141c3e9d34dc_1440w.png"]}},"created_at":"2020-08-10T04:28:28.000Z","updated_at":"2023-07-25T07:12:35.000Z","dependencies_parsed_at":"2022-09-07T16:50:40.490Z","dependency_job_id":null,"html_url":"https://github.com/fastwego/wxpay","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fastwego/wxpay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastwego%2Fwxpay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastwego%2Fwxpay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastwego%2Fwxpay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastwego%2Fwxpay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastwego","download_url":"https://codeload.github.com/fastwego/wxpay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastwego%2Fwxpay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28481016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastwego","wechat","wechatpay","weixin","wxpay"],"created_at":"2026-01-16T18:38:24.673Z","updated_at":"2026-01-16T18:38:24.858Z","avatar_url":"https://github.com/fastwego.png","language":"Go","funding_links":["https://public.zsxq.com/groups/48415121824218.html","https://pic2.zhimg.com/80/v2-6b84f07b309b6e1ad1b3141c3e9d34dc_1440w.png"],"categories":[],"sub_categories":[],"readme":"# fastwego/wxpay [beta]\n\nA fast [wxpay(v2)](https://pay.weixin.qq.com/wiki/doc/api/index.html) development sdk written in Golang\n\n[![GoDoc](https://pkg.go.dev/badge/github.com/fastwego/wxpay?status.svg)](https://pkg.go.dev/github.com/fastwego/wxpay?tab=doc)\n[![Go Report Card](https://goreportcard.com/badge/github.com/fastwego/wxpay)](https://goreportcard.com/report/github.com/fastwego/wxpay)\n## 快速开始 \u0026 demo\n\n```shell script\ngo get github.com/fastwego/wxpay\n```\n\n```go\n// 微信支付 实例\npay = wxpay.New(wxpay.Config{\n    Appid:  \"APPID\",\n    Mchid:  \"MCHID\",\n    ApiKey: \"APIKEY\",\n    //IsSandBoxMode: true,\n    Cert: \"CERT\",\n})\n\n// 统一下单\nparams := map[string]string{\n    \"appid\":            pay.Config.Appid,\n    \"mch_id\":           pay.Config.Mchid,\n    \"nonce_str\":        util.GetRandString(32),\n    \"body\":             \"BODY\",\n    \"out_trade_no\":     \"NO.10086\",\n    \"total_fee\":        c.Request.URL.Query().Get(\"fee\"), // 201\n    \"spbill_create_ip\": \"12.123.14.223\",\n    \"notify_url\":       viper.GetString(\"NOTIFYURL\"),\n    \"trade_type\":       types.TradeTypeAPP,\n}\nresult, err := order.UnifiedOrder(pay, params)\nfmt.Println(result, err)\n\nif err != nil {\n    return\n}\n\n// 返回客户端预下单信息\n//result[\"prepay_id\"]\n\n```\n\n完整演示项目：\n\n[https://github.com/fastwego/wxpay-demo](https://github.com/fastwego/wxpay-demo)\n\n查看所有支持的 [API 列表](./doc/apilist.md)\n\n## 架构设计\n\n![sdk](./doc/img/sdk.jpg)\n\n\n## 框架特点\n\n### 快速\n\n「快」作为框架设计的核心理念，体现在方方面面：\n\n- 使用 Go 语言，开发快、编译快、部署快、运行快，轻松服务海量用户\n- 丰富的[文档](https://pkg.go.dev/github.com/fastwego/wxpay) 和 [演示代码](https://github.com/fastwego/wxpay-demo) ，快速上手\n- 独立清晰的模块划分，快速熟悉整个框架，没有意外，一切都是你期望的样子\n- 甚至连框架自身的大部分代码也是自动生成的，维护更新快到超乎想象\n\n### 符合直觉\n\n作为第三方开发框架，尽可能贴合官方文档和设计，不引入新的概念，不给开发者添加学习负担\n\n### 官方文档就是最好的文档\n\n每个接口的注释都附带官方文档的链接，让你随时翻阅，省时省心\n\n### 完备的单元测试\n\n100% 覆盖每一个接口，让你每一次调用都信心满满\n\n### 活跃的开发者社区\n\nFastWeGo 是一套完整的微信开发框架，包括公众号、开放平台、微信支付、企业微信、小程序、小游戏等微信服务，拥有庞大的开发者用户群体\n\n你遇到的所有问题几乎都可以在社区找到解决方案\n\n## 参与贡献\n\n欢迎提交 pull request / issue / 文档，一起让微信开发更快更好！\n\nFaster we go together!\n\n[加入开发者交流群](https://github.com/fastwego/fastwego.dev#%E5%BC%80%E5%8F%91%E8%80%85%E4%BA%A4%E6%B5%81%E7%BE%A4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastwego%2Fwxpay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastwego%2Fwxpay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastwego%2Fwxpay/lists"}