Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fzlee/alipay
Python Alipay(支付宝) SDK with SHA1/SHA256 support
https://github.com/fzlee/alipay
alipay alipay-apis python python-alipay python-alipay-sdk sha1withrsa sha256withrsa
Last synced: about 14 hours ago
JSON representation
Python Alipay(支付宝) SDK with SHA1/SHA256 support
- Host: GitHub
- URL: https://github.com/fzlee/alipay
- Owner: fzlee
- License: other
- Created: 2016-11-18T10:37:16.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-05T17:47:40.000Z (11 months ago)
- Last Synced: 2024-11-28T16:04:27.650Z (15 days ago)
- Topics: alipay, alipay-apis, python, python-alipay, python-alipay-sdk, sha1withrsa, sha256withrsa
- Language: Python
- Homepage:
- Size: 282 KB
- Stars: 1,289
- Watchers: 38
- Forks: 378
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- my-awesome - fzlee/alipay - apis,python,python-alipay,python-alipay-sdk,sha1withrsa,sha256withrsa pushed_at:2024-01 star:1.3k fork:0.4k Python Alipay(支付宝) SDK with SHA1/SHA256 support (Python)
README
## python-alipay-sdk
[![PyPI version](https://badge.fury.io/py/python-alipay-sdk.svg)](https://badge.fury.io/py/python-alipay-sdk) [![codecov](https://codecov.io/gh/fzlee/alipay/branch/master/graph/badge.svg)](https://codecov.io/gh/fzlee/alipay) ![travis-ci](https://travis-ci.org/fzlee/alipay.svg?branch=master)
## [中文文档](./README.zh-hans.md)## Unofficial AliPay Python SDK
Taking a look at [this guide](https://ifconfiger.com/articles/python-alipay-sdk) if you are interested at the details on signing your order requests.
## GUIDES
* [Preparation](./docs/preparation.md)
* [Initialization & validation](./docs/init.md)
* [API](./docs/apis.md)
* [Advanced API, introduced in 3.0](./docs/apis_new.md)## 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
```bash
python -m unittest discover
```Or you may do test manually in this way, `debug=True` will direct your request to sandbox environment:
```python
alipay = AliPay(..., debug=True)
```