-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b249e6
commit 1488fd4
Showing
21 changed files
with
147 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
## python-alipay-sdk | ||
[](https://badge.fury.io/py/python-alipay-sdk) [](https://codecov.io/gh/fzlee/alipay)  | ||
## [English document](./README.md) | ||
|
||
## 非官方支付宝 Python SDK | ||
## 非官方支付宝 Python SDK | ||
|
||
关于签名的详细实现细节参看[这篇教程](https://ifconfiger.com/page/python-alipay-sdk). 如果你不希望深入了解技术实现的细节,你可以直接阅读下面的使用教程。 | ||
关于签名的详细实现细节参看[这篇教程](https://ifconfiger.com/page/python-alipay-sdk)。如果你不希望深入了解技术实现的细节,你可以直接阅读下面的使用教程。 | ||
|
||
## 使用教程 | ||
* [准备](./docs/preparation.zh-hans.md) | ||
* [初始化](./docs/init.zh-hans.md) | ||
* [接口](./docs/apis.zh-hans.md) | ||
* [3.0新版接口](./docs/apis_new.zh-hans.md) | ||
* [3.0 新版接口](./docs/apis_new.zh-hans.md) | ||
|
||
## 3.0的特性以及如何升级 | ||
3.0 提供了两个函数`client_api`和`server_api`, 他们可以处理大部分支付宝的接口. | ||
## 3.0 的特性以及如何升级 | ||
3.0 提供了两个函数 `client_api` 和 `server_api`,他们可以处理大部分支付宝的接口。 | ||
|
||
3.0 保持向前的兼容性, 唯一需要注意的是`Alipay.verify`函数不会将sign从data里面pop出来, 你需要自己处理. | ||
3.0 保持向前的兼容性,唯一需要注意的是 `Alipay.verify` 函数不会将 `sign` 从 `data` 里面 `pop` 出来,你需要自己处理。 | ||
|
||
## 测试 | ||
``` | ||
```bash | ||
python -m unittest discover | ||
``` | ||
|
||
或者你可以传入debug=True, 进行手动测试 | ||
或者你可以传入 `debug=True`,进行手动测试: | ||
```python | ||
alipay = AliPay(..., debug=True) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,4 @@ | |
""" | ||
__inti__.py | ||
~~~~~~~~~~ | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
""" | ||
compat.py | ||
~~~~~~~~~~ | ||
""" | ||
from urllib.parse import quote_plus | ||
from urllib.request import urlopen | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
""" | ||
exceptions.py | ||
~~~~~~~~~~ | ||
""" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
""" | ||
alipay/utils.py | ||
~~~~~~~~~~ | ||
""" | ||
|
||
|
||
class AliPayConfig: | ||
def __init__(self, timeout=15): | ||
self.timeout = timeout |
Oops, something went wrong.