fzlee/alipay

Python Alipay(支付宝) SDK with SHA1/SHA256 support

Python

1,341

222 commits

updated Mar 16, 2026

See the code

README

python-alipay-sdk

PyPI version codecov travis-ci

中文文档

Unofficial AliPay Python SDK

Taking a look at this guide if you are interested at the details on signing your order requests.

GUIDES

What's new in 3.0 and how to migrate to 3.0

3.0 introduced two new functions: client_api and server_appi as a replacement of old-styled function based api .

3.0 keeps backward compatibility with 2.*, The only thing you should keep in mind is Alipay.verify won't pop sign from data automatically, you should handle it by yourself.

Test

python -m unittest discover

Or you may do test manually in this way, debug=True will direct your request to sandbox environment:

alipay = AliPay(..., debug=True)
alipay
alipay-apis
python
python-alipay
python-alipay-sdk
sha1withrsa
sha256withrsa

fzlee/alipay

Python Alipay(支付宝) SDK with SHA1/SHA256 support

Python

1,341

222 commits

updated Mar 16, 2026

See the code

README

python-alipay-sdk

PyPI version codecov travis-ci

中文文档

Unofficial AliPay Python SDK

Taking a look at this guide if you are interested at the details on signing your order requests.

GUIDES

What's new in 3.0 and how to migrate to 3.0

3.0 introduced two new functions: client_api and server_appi as a replacement of old-styled function based api .

3.0 keeps backward compatibility with 2.*, The only thing you should keep in mind is Alipay.verify won't pop sign from data automatically, you should handle it by yourself.

Test

python -m unittest discover

Or you may do test manually in this way, debug=True will direct your request to sandbox environment:

alipay = AliPay(..., debug=True)
alipay
alipay-apis
python
python-alipay
python-alipay-sdk
sha1withrsa
sha256withrsa

Project health

Overall

3.3/10

Maintained

0/10

Code review

1/10
OpenSSF Scorecard

Significant stargazers

JianBo He

95 followers · starred Dec 2023

Gavin Li

1,166 followers · starred Jan 2023