# wechatpay-apiv3/wechatpay-go

微信支付 APIv3 的官方 Go Library

Repository: https://github.com/wechatpay-apiv3/wechatpay-go
Canonical: https://ross.abutalabs.com/products/wechatpay-go
Homepage: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/index.shtml
Language: Go
License: Apache-2.0
License Family: permissive
Topics: go, golang, wechatpay, wechatpay-apiv3, library, sdk, api-client, api-sdk
Last push: 2025-07-07T08:16:46+00:00

## Health v2 (maintenance only)
Score: 36/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 30, release rhythm 8, longevity 100
- inputs: {"age_days": 2014, "days_push": 422, "days_rel": 422, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1286, forks 152 (observed 2026-08-28T04:04:14.951988+00:00)

## What it is
The official Go SDK for WeChat Pay APIv3, providing typed service clients, an HTTP client with request signing and response verification, and callback notification decryption. It also includes helpers for certificate download and sensitive-data encryption.

## Use cases
- integrate wechat pay into a go backend
- sign and verify wechat pay api v3 requests
- handle wechat pay payment callback notifications
- download wechat pay platform certificates
- encrypt sensitive data for wechat pay api
- accept jsapi or native payments in a go service

## When to choose
- you are building a Go backend that needs WeChat Pay APIv3 integration
- you want an official, maintained SDK with typed API services
- you need automatic platform certificate rotation and callback signature verification

## When to avoid
- you need WeChat Pay integration in a language other than Go
- you only use the legacy WeChat Pay V2 API
- you need a payment aggregator supporting multiple providers

## Facets
- artifact type: library
- maturity: active
- function: sdk, http-client, auth, cryptography
- domain: fintech, apis, developer-tools
- platform: go, cross-platform
- tags: wechat-pay, payment-gateway, api-client, request-signing, callback-verification, official-sdk

## Member repositories
- wechatpay-apiv3/wechatpay-go (main) score 36

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:14.951988+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:56:37.332919+00:00, confidence not recorded.
  - readme: https://github.com/wechatpay-apiv3/wechatpay-go (fetched 2026-08-28T04:04:14.951988+00:00, sha 6f0682ae1284)
  - homepage: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/index.shtml (fetched 2026-08-29T12:12:20.801417+00:00, sha fdeb3fad791a)
  - site_page: https://kf.qq.com/faq/180910IBZVnQ180910naQ77b.html (fetched 2026-08-29T12:12:20.810521+00:00, sha d640304454ce)
- Data as of 2026-08-30T08:39:29.467469+00:00.
