# minibear2021/wechatpayv3

微信支付 API v3 Python SDK

Repository: https://github.com/minibear2021/wechatpayv3
Canonical: https://ross.abutalabs.com/products/wechatpayv3
Language: Python
License: MIT
License Family: permissive
Topics: wechatpay, sdk
Last push: 2026-07-18T06:53:24+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 72, longevity 100
- inputs: {"age_days": 1967, "days_push": 46, "days_rel": 186, "gap_med": 12, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1332, forks 180 (observed 2026-08-28T04:04:24.499964+00:00)

## What it is
A Python SDK for WeChat Pay API v3 supporting both direct-merchant and service-provider modes. It handles automatic platform certificate updates, signature verification, sensitive-data encryption, callback decryption, and async usage.

## Use cases
- integrate wechat pay v3 into a python backend
- create native pay orders and handle payment notifications
- verify and decrypt wechat pay callback notifications automatically
- use wechat pay in a fastapi async application
- handle wechat pay platform certificate renewal without manual downloads
- support wechat pay service-provider (partner) mode

## When to choose
- you need to accept WeChat Pay in a Python service with minimal boilerplate
- you want automatic certificate management and callback verification handled for you
- you need both direct and service-provider WeChat Pay modes

## When to avoid
- you need Alipay, Stripe, or other non-WeChat payment providers
- you need the e-commerce collect-and-pay (电商收付通) APIs, which are not covered
- your stack is not Python

## Facets
- artifact type: library
- maturity: active
- function: sdk, http-client, cryptography, security
- domain: fintech, apis, backend, web-development
- platform: python, cross-platform
- tags: wechat-pay, payment-processing, wechatpayv3, async-support, china-payments

## Member repositories
- minibear2021/wechatpayv3 (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:24.499964+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:45:11.885821+00:00, confidence not recorded.
  - readme: https://github.com/minibear2021/wechatpayv3 (fetched 2026-08-28T04:04:24.499964+00:00, sha fbd599416e9f)
  - registry_pypi: https://pypi.org/pypi/wechatpayv3/json (fetched 2026-08-29T12:04:20.967390+00:00, sha 6db08f3983fe)
- Data as of 2026-08-30T08:39:29.467469+00:00.
