【Github】项目名:objcoding/wxpay – 微信支付Golang版SDK
项目简介
这是一个用于Golang的微信支付(WeChatPay)SDK。它提供了诸如MicroPay(刷卡支付)、UnifiedOrder(统一下单)、OrderQuery(查询订单)等多种方法。其参数为Params类型(map[string]string),返回类型也是Params。内部会将参数转换为含有特定元素的XML,默认用MD5签名,通过HTTPS请求返回数据后会做必要处理,如验证签名,签名错误会抛出异常。同时,对于DownloadBill方法,无论成功与否都返回Map且含特定元素。
项目安装与示例
安装方式为:$go get github.com/objcoding/wxpay gomodules//go.mod require github.com/objcoding/wxpay v1.0.5。示例中展示了如何创建支付账户、新建微信支付客户端、设置证书、账户、超时时间、签名类型,以及进行统一下单、订单查询、退款、退款查询、签名、校验签名、xml解析和封装xml请求参数等操作,还给出了支付或退款成功与失败信息的返回示例。
项目总结
这个objcoding/wxpay项目为Golang开发者提供了方便的微信支付功能集成方式。如果你对这个项目有任何想法或者问题,欢迎在下方留言参与讨论。
项目地址
数据统计
数据评估
本站链氪巴士提供的objcoding/wxpay-微信支付Golang版SDK都来源于网络,不保证外部链接的准确性和完整性,同时,对于该外部链接的指向,不由链氪巴士实际控制,在2024年12月6日 上午12:00收录时,该网页上的内容,都属于合规合法,后期网页的内容如出现违规,可以直接联系网站管理员进行删除,链氪巴士不承担任何责任。
相关导航
Bluesky Social application is available on Web, iOS, and Android. It is a React Native app written in TypeScript with some Golang code. Part of the ATProtocol ecosystem, it has its own set of schemas and APIs. Contributions are accepted with specific rules. Security issues can be reported via email. It is an open - source project under the MIT license. This app offers an alternative in the social media landscape and has its own development and contribution guidelines.