$npx skillfedfor your agent

wechatpayv3

微信支付 Python SDK(python sdk for wechatpay)

Worth itPyPI FinancialReleased Jul 20261.4M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — wechatpayv3-2.0.3-py3-none-any.whl
v2.0.3 · released 2026-07-18 · 2 runtime deps: requests, cryptography

Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and installs with minimal friction. It is purpose-built for WeChat Pay integration and handles the cryptographic and certificate complexity that would otherwise require significant custom implementation. Suitable for production use if your application needs to accept WeChat payments.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires merchant credentials from WeChat Pay backend: private key file, certificate serial number, API v3 key, and app ID.
  • These must be obtained and configured before initialization.
  • Low friction installation with only 2 runtime dependencies (requests and cryptography).

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, making it suitable for production payment integrations.

last release 2026-07-18 (27 days) · last repo commit 2026-07-18 · 1,330 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,390,227 downloads/mo, #3,965 on PyPI

Verify before relying

from wechatpayv3 import WeChatPay, WeChatPayType

wxpay = WeChatPay(
    wechatpay_type=WeChatPayType.NATIVE,
    mchid='merchant_id',
    private_key=PRIVATE_KEY,
    cert_serial_no=CERT_SERIAL_NO,
    apiv3_key=APIV3_KEY,
    appid=APPID,
    notify_url=NOTIFY_URL,
    cert_dir='./cert'
)

code, message = wxpay.pay(
    description='payment description',
    out_trade_no='order_id',
    amount={'total': 100},
    pay_type=WeChatPayType.NATIVE
)
  • Whether async support requires additional setup beyond the optional [async] extra
  • Specific Python version compatibility (requires_python not specified in metadata)
  • Whether platform certificate auto-update works offline or requires network access
Same gist for agents: .md · .json

What it is and what it does

This is a Python SDK for WeChat Pay's API v3, designed to simplify payment processing integration for both direct merchant mode and service provider mode. It wraps the WeChat payment API with automatic handling of platform certificates, encryption of sensitive data, and callback signature verification—removing the need for developers to manually manage cryptographic operations or certificate lifecycle.

The package handles the full payment flow: initializing a merchant account with credentials, processing payment orders (supporting Native, H5, mini-program, JSAPI, and APP payment types), and validating incoming payment notifications. It supports both synchronous and asynchronous request patterns, making it compatible with frameworks like Flask and FastAPI. Dependencies are minimal (requests for HTTP calls, cryptography for encryption), and the SDK manages certificate caching locally to reduce repeated downloads.

Use it for

  • Process WeChat QR code (Native) payments in a web backend, converting payment orders to QR codes for mobile scanning.
  • Validate and decrypt incoming payment notification callbacks from WeChat's servers to confirm transaction completion.
  • Integrate WeChat payment into a mini-program or H5 app using JSAPI or APP payment types with automatic request signing.
  • Manage merchant API certificates and platform public keys without manual certificate renewal or rotation logic.
  • Build async payment endpoints in FastAPI or similar frameworks using the package's async/await support.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and installs with minimal friction. It is purpose-built for WeChat Pay integration and handles the cryptographic and certificate complexity that would otherwise require significant custom implementation. Suitable for production use if your application needs to accept WeChat payments.

Install

wechatpayv3 on PyPI

Before you install

Low friction installation with only 2 runtime dependencies (requests and cryptography). Package is actively maintained with recent commits and 1330 repository stars, indicating stable ongoing development.

Requires merchant credentials from WeChat Pay backend: private key file, certificate serial number, API v3 key, and app ID. These must be obtained and configured before initialization.

License in practice

MIT license permits commercial and private use with minimal restrictions, making it suitable for production payment integrations.

Quickstart

from wechatpayv3 import WeChatPay, WeChatPayType

wxpay = WeChatPay(
    wechatpay_type=WeChatPayType.NATIVE,
    mchid='merchant_id',
    private_key=PRIVATE_KEY,
    cert_serial_no=CERT_SERIAL_NO,
    apiv3_key=APIV3_KEY,
    appid=APPID,
    notify_url=NOTIFY_URL,
    cert_dir='./cert'
)

code, message = wxpay.pay(
    description='payment description',
    out_trade_no='order_id',
    amount={'total': 100},
    pay_type=WeChatPayType.NATIVE
)

Verify before relying

  • Whether async support requires additional setup beyond the optional [async] extra
  • Specific Python version compatibility (requires_python not specified in metadata)
  • Whether platform certificate auto-update works offline or requires network access

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
requestscryptography
MaintenanceActively maintained 27 days since the last release
Last repo commit
First released
Downloads1,390,227 / month, #3,965 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableProgramming Language :: Python :: 3Topic :: Office/Business :: Financial

Evidence: wechatpayv3-2.0.3-py3-none-any.whl

Tags

Capabilities
wechat pay api integrationchinese payment gateway sdkweixin pay v3 pythonpayment callback verificationmerchant certificate management
Topics
payment-processingchinese-fintech
PyPI keywords
pythonsdkwechatpayapiv3微信支付

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “wechat pay api integration”

  • wechatpayv3SDK for integrating WeChat Pay API v3 into Python applications,…
  • wechatpyWeChat SDK providing Python bindings for WeChat's public platform,…
  • pywxdumpExtracts WeChat account metadata, decrypts chat databases, and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Financial packages

statsmodels Worth it
PyPI · Scientific/Engineering · released Dec 2025

statsmodels provides statistical models, inference methods, and descriptive statistics for Python, complementing scipy with regression, time series, discrete choice, survival analysis, and multivariate methods.

Install it if you need publication-quality statistical models, hypothesis tests, or time series analysis beyond what scipy or pandas provide.

BSD-3-Clausecompiled wheel · 3.9+
45.7Mdownloads / mo
holidays Worth it
PyPI · Python Modules · released Aug 2026

Generates country- and subdivision-specific government holiday calendars on demand, supporting 250 country codes with optional language localization and holiday categories.

MITpure Python · 3.10+
30.7Mdownloads / mo
yfinance With conditions
PyPI · Libraries · released Aug 2026

Fetches financial and market data from Yahoo Finance's public APIs, including ticker information, historical prices, and live streaming data.

However, do not use it for commercial applications or high-volume data collection without confirming compliance with Yahoo's terms of service.

Apache-2.0pure Python
29.2Mdownloads / mo
bokeh Worth it
PyPI · Scientific/Engineering · released Jul 2026

Bokeh is an interactive visualization library that creates browser-based plots, dashboards, and data applications from Python code, with support for large and streaming datasets.

Install it if you need browser-based interactivity.

BSD-3-Clausepure Python · 3.10+
12.1Mdownloads / mo
python-stdnum Worth it
PyPI · Python Modules · released Jan 2026

Parses, validates, and reformats standard numbers and codes across many countries and industries—tax IDs, bank accounts, identity numbers, VAT codes, and financial identifiers.

Install it if you validate or reformat standardized numbers.

LGPL-2.0-or-laterpure Python · 3.8+
6.2Mdownloads / mo
numpy-financial With conditions
PyPI · Software Development · released Oct 2019

Provides elementary financial functions (IRR, NPV, PMT, and others) that were deprecated and removed from NumPy, offering a dedicated replacement for financial calculations.

However, given the aging status (no releases since 2019) and unclear compatibility with modern Python and recent numpy versions, verify that it works with your target…

BSD-3-Clausepure Python · 3.5+aging
5.9Mdownloads / mo

See also wechatpy · braintree · recurly · yelpapi · paytmchecksum · razorpay · paypalrestsdk · Flask-AWSCognito · gmssl · binance-connector