RepositoryPythonCNChina
adisonhuang

adisonhuang/pay-python

轻量级支付方式整合集成,实现支付与业务完全剥离,快速简单完成支付模块的开发,代码实现优雅灵活,横向扩展简单

142stars
39forks
3issues
0views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: alipay

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: pay

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: wechat-pay

#1 Repository Của Tháng

🧾 pay-python: Tích hợp Alipay + WeChat Pay chỉ với vài dòng config

Thư viện Python nhẹ, API thống nhất, hỗ trợ mở rộng dễ dàng.

pay-python là một bản gói tích hợp thanh toán cho Python, hỗ trợ cả Alipay và WeChat Pay. Dự án mục tiêu tách rời logic thanh toán khỏi business logic, giúp phát triển module thanh toán nhanh chóng và đơn giản.

✨ Điểm nổi bật

  • API thống nhất: Ẩn đi sự khác biệt giữa các nền tảng thanh toán
  • Hỗ trợ mở rộng: Dễ dàng thêm loại thanh toán mới
  • Xử lý lỗi tập trung: Toàn bộ ngoại lệ được xử lý đồng nhất
  • Hỗ trợ đa nền tảng: Alipay (ali_pay) và WeChat Pay (wx_pay)
  • Đa dạng chức năng: Trang thanh toán, WAP, APP, JS Pay, thông báo bất đồng bộ, truy vấn, hủy, hoàn tiền
  • Cấu hình đơn giản: Chỉ cần dict cấu hình và khởi tạo Pay
  • Builder pattern: Dùng PayOrder và PayResponse để tạo đơn hàng và phản hồi linh hoạt

💡 Vì sao đáng chú ý

Khác với cách tích hợp thủ công từng nền tảng, pay-python cung cấp một lớp trừu tượng thống nhất, giảm đáng kể công sức viết mã và duy trì. Phù hợp cho các dự án cần hỗ trợ nhiều phương thức thanh toán mà không muốn nhân đôi logic.


#Python #Alipay #WeChatPay #PaymentIntegration #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryC#
essensoft/paylinks

一套基于 现代 .NET 开发,支持跨平台、多商户的第三方支付SDK。

1.9k
Nov 24, 2025
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

187.7k
Oct 24, 2026
RepositoryPython
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

375.7k
Sep 15, 2026
RepositoryPython
vinta/awesome-python

The definitive list that answers "I want to do X in Python, which tool should I use?"

330.4k
Oct 26, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

288.1k
Oct 26, 2026
RepositoryPython
TheAlgorithms/Python

All Algorithms implemented in Python

225.5k
Oct 20, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

202.5k
Oct 23, 2026
RepositoryPython
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

184.7k
Sep 28, 2026
RepositoryPython
huggingface/transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

168.0k
Oct 23, 2026