Skip to content

Commit

Permalink
修复电子发票-配置开发选项请求类型bug
Browse files Browse the repository at this point in the history
  • Loading branch information
minibear2021 committed Nov 15, 2023
1 parent 1b50726 commit 4bd9aa0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [1.2.42] - 2023-11-15

### Fixed

- 修复电子发票-配置开发选项请求类型bug

## [1.2.41] - 2023-09-01

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="wechatpayv3",
version="1.2.41",
version="1.2.42",
author="minibear",
description="微信支付 API v3 Python SDK(python sdk for wechatpay v3)",
long_description=long_description,
Expand Down
2 changes: 1 addition & 1 deletion wechatpayv3/fapiao.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def fapiao_set_merchant_config(self, callback_url=None):
params = {}
params.update({'callback_url': callback_url})
path = '/v3/new-tax-control-fapiao/merchant/development-config'
return self._core.request(path, method=RequestType.POST, data=params)
return self._core.request(path, method=RequestType.PATCH, data=params)


def fapiao_merchant_config(self):
Expand Down
2 changes: 1 addition & 1 deletion wechatpayv3/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def refund(self,
sub_mchid=None):
"""申请退款
:param out_refund_no: 商户退款单号,示例值:'1217752501201407033233368018'
:param amount: 金额信息,示例值:{'refund':888, 'total':888, 'currency':'CNY', 'refund_fee':100}
:param amount: 金额信息,示例值:{'refund':888, 'total':888, 'currency':'CNY'}
:param transaction_id: 微信支付订单号,示例值:'1217752501201407033233368018'
:param out_trade_no: 商户订单号,示例值:'1217752501201407033233368018'
:param reason: 退款原因,示例值:'商品已售完'
Expand Down

0 comments on commit 4bd9aa0

Please sign in to comment.