@@ -18,6 +18,7 @@ An Unofficial Alipay API for Python, It Contain these API:
18
18
- Generate direct payment url
19
19
- Generate partner trade payment url
20
20
- Generate Standard mixed payment url
21
+ - Generate batch trans money url
21
22
- Verify notify
22
23
23
24
official document: https://b.alipay.com/order/techService.htm
@@ -86,6 +87,37 @@ Introduction: https://b.alipay.com/order/productDetail.htm?productId=20121112003
86
87
>> > alipay.create_partner_trade_by_buyer_url(** params)
87
88
' https://mapi.alipay.com/gateway.do?seller_email=.....'
88
89
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
+
89
121
Generate send goods confirm url
90
122
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91
123
0 commit comments