Skip to content

Commit 2462f91

Browse files
committed
商家转账到零钱添加回调地址参数
1 parent f02d13d commit 2462f91

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

docs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [1.2.49] - 2024-04-15
4+
5+
### Fixed
6+
7+
- 商家转账到零钱添加回调地址参数
8+
39
## [1.2.48] - 2024-04-03
410

511
### Fixed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name="wechatpayv3",
9-
version="1.2.48",
9+
version="1.2.49",
1010
author="minibear",
1111
description="微信支付 API v3 Python SDK(python sdk for wechatpay v3)",
1212
long_description=long_description,

wechatpayv3/transfer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from .type import RequestType
44

55

6-
def transfer_batch(self, out_batch_no, batch_name, batch_remark, total_amount, total_num, transfer_detail_list=[], appid=None, transfer_scene_id=None):
6+
def transfer_batch(self, out_batch_no, batch_name, batch_remark, total_amount, total_num, transfer_detail_list=[], appid=None, transfer_scene_id=None, notify_url=None):
77
"""发起商家转账
88
:param out_batch_no: 商户系统内部的商家批次单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一,示例值:'plfk2020042013'
99
:param batch_name: 该笔批量转账的名称,示例值:'2019年1月深圳分部报销单'
@@ -13,6 +13,7 @@ def transfer_batch(self, out_batch_no, batch_name, batch_remark, total_amount, t
1313
:param transfer_detail_list: 发起批量转账的明细列表,最多三千笔,示例值:[{"out_detail_no": "x23zy545Bd5436", "transfer_amount": 200000, "transfer_remark": "2020年4月报销", "openid": "o-MYE42l80oelYMDE34nYD456Xoy", "user_name": "张三"}]
1414
:param appid: 应用ID,可不填,默认传入初始化时的appid,示例值:'wx1234567890abcdef'
1515
:param transfer_scene_id: 转账场景ID,示例值:'1001'
16+
:param notify_url: 通知地址,示例值:'https://www.weixin.qq.com/wxpay/pay.php'
1617
"""
1718
params = {}
1819
if out_batch_no:
@@ -45,6 +46,7 @@ def transfer_batch(self, out_batch_no, batch_name, batch_remark, total_amount, t
4546
transfer_detail['user_name'] = self._core.encrypt(transfer_detail.get('user_name'))
4647
cipher_data = True
4748
params.update({'appid': appid or self._appid})
49+
params.update({'notify_url': notify_url or self._notify_url})
4850
if transfer_scene_id:
4951
params.update({'transfer_scene_id': transfer_scene_id})
5052
path = '/v3/transfer/batches'

0 commit comments

Comments
 (0)