Skip to content

Commit 5bca958

Browse files
committed
fix pro in test.py
1 parent 6e4555e commit 5bca958

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ eggs
1010
*.egg-info/
1111
.tox/
1212
*.egg/
13+
.idea/

README.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ An Unofficial Alipay API for Python, It Contain these API:
1818
- Generate direct payment url
1919
- Generate partner trade payment url
2020
- Generate Standard mixed payment url
21+
- Generate batch trans money url
2122
- Verify notify
2223

2324
official document: https://b.alipay.com/order/techService.htm
@@ -86,6 +87,37 @@ Introduction: https://b.alipay.com/order/productDetail.htm?productId=20121112003
8687
>>> alipay.create_partner_trade_by_buyer_url(**params)
8788
'https://mapi.alipay.com/gateway.do?seller_email=.....'
8889
90+
Generate batch trans notify url
91+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92+
93+
..
94+
95+
生成批量付款链接
96+
97+
Introduction: https://b.alipay.com/order/productDetail.htm?productId=2012111200373121
98+
99+
.. code-block:: python
100+
101+
>>> params = {
102+
... 'batch_list': (), #批量付款用户列表
103+
... 'account_name': 'seller_account_name', #卖家支付宝名称
104+
... 'batch_no': 'batch_id', #转账流水号,须唯一
105+
... 'notify_url': 'your_batch_notify_url' #异步通知地址
106+
... }
107+
>>> alipay.create_batch_trans_notify_ur(**params)
108+
'https://mapi.alipay.com/gateway.do?seller_email=xxx&detail_data=....'
109+
110+
Note: batch_list 为批量付款用户列表,具体格式如下例子:(如涉及中文请使用unicode字符)
111+
112+
>>> batch_list = ({'account': '[email protected]', #支付宝账号
113+
... 'name': u'测试', #支付宝用户姓名
114+
... 'fee': '100', #转账金额
115+
... 'note': 'test'},
116+
... {'account': '[email protected]', #支付宝账号
117+
... 'name': u'测试', #支付宝用户姓名
118+
... 'fee': '100', #转账金额
119+
>>> 'note': 'test'}) #转账原因
120+
89121
Generate send goods confirm url
90122
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91123

0 commit comments

Comments
 (0)