Files
payment-spring-boot/docs/changelog.md
2025-06-11 19:37:29 +08:00

217 lines
12 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 1.0.21.RELEASE
### 微信支付
- enhance: 增加了通过微信公钥对微信支付相关接口的响应内容或微信回调通知的参数进行验签的支持。
- 微信配置项增加了:``` wechat-pay-public-key-id: 微信支付公钥的ID、 wechat-pay-public-key-path微信支付公钥的路径、wechat-pay-public-key-absolute-path: 微信支付公钥的绝对路径、 switch-verify-sign-method: 是否启用从平台证书切换到微信支公钥```
- `wechat-pay-public-key-id ``wechat-pay-public-key-path或wechat-pay-public-key-absolute-path`<font color=red>同时正确配置</font>,才会启用微信支付公钥验签,否则默认使用平台证书进行验签。</font>
- 如果需要[从平台证书切换成微信支付公钥](https://pay.weixin.qq.com/doc/v3/merchant/4012154180#5.-%E6%B2%A1%E6%9C%89%E4%BD%BF%E7%94%A8%E5%BE%AE%E4%BF%A1%E6%94%AF%E4%BB%98SDK%E7%9A%84%E5%95%86%E6%88%B7%E5%A6%82%E4%BD%95%E5%B0%86%E5%B9%B3%E5%8F%B0%E8%AF%81%E4%B9%A6%E5%88%87%E6%8D%A2%E6%88%90%E5%BE%AE%E4%BF%A1%E6%94%AF%E4%BB%98%E5%85%AC%E9%92%A5),请启用`switch-verify-sign-method`参数
- enhance: 增加了微信支付V3版本的付款码支付``codePay``与撤销API``reverse``(仅支持普通商户模式,服务商模式暂不支持)
- factor: 升级了spring-boot-parent版本从 2.7.7 到2.7.18
- factor: 升级了Alipay SDK版本从4.31.7.ALL到4.40.251.ALL
## 1.0.18.RELEASE
### 微信支付
- enhance: 使用`ResourceLoader`加载资源以改善Docker容器环境下的文件挂载问题
- enhance: 修改了微信支付配置加载机制,现在可以借助于`WechatTenantService`实现不停机维护微信支付参数的能力
- factor: 移除过时的V2退款API相关参数`RefundModel``RefundQueryModel`
- docs: 更新文档地址到[dromara.org](https://gitee.com/dromara),现在你可以通过[https://dromara.org/payment-spring-boot/](https://dromara.org/payment-spring-boot/)访问项目文档
- docs: 修正文档描述错误
## 1.0.17.RELEASE
### 微信支付
- feat: 直连商户合单支付增加查询单笔退款
- feat: 支付分增加退款独立的API
- factor: 营销图片上传API现在由WechatMediaApi#marketingImageUpload实现以代替WechatMarketingFavorApi#marketingImageUpload,旧实现已标记为过时
- factor:时间格式优化移除时区限制为东八区由LocalDateTime改为OffsetDateTime
- docs: 现在可以通过API清单检索API了
## 1.0.16.RELEASE
### 微信支付
- feat: 直连商户-委托营销相关API实现
- enhance:基础支付增加电子发票入口开放标识
- enhance:商家转账到零钱-发起商家转账 增加转账场景ID
- enhance: 增加抽象接口`WechatTenantService`负责从配置文件或者其它数据源检索租户配置信息,提供默认实现`InMemoryWechatTenantService`向下兼容 #88
- refactor: 服务商商户进件请求不再需要银行证明材料信息`BankAccountInfo`,已标记为废弃,涉及特约商户进件和电商收付通
- upgrade: bcprov-jdk15to18 1.67 升级到 1.69
## 1.0.15.RELEASE
### 微信支付
- feat: 增加服务商退款API
- feat: 微信服务商分账-连锁品牌分账 [#82](https://github.com/NotFound403/payment-spring-boot/issues/82)
- fix: 多租户证书无法复用的问题,刷新时正确移除证书 [#77](https://github.com/NotFound403/payment-spring-boot/issues/77)
- fix: 批量转账到零钱API入参NPE问题修复 [#85](https://github.com/NotFound403/payment-spring-boot/issues/85)
- fix: 商家券-修改批次预算API请求方法应该为Patch [#79](https://github.com/NotFound403/payment-spring-boot/issues/79)
- enhance: 部分时间格式优化更好地兼容Java Time API
- enhance: 微信代金券样式的背景颜色枚举更新 [#84](https://github.com/NotFound403/payment-spring-boot/issues/84)
- upgrade: Spring Boot 版本升级到2.7.7
## 1.0.14.RELEASE
### 微信支付
- fix: 批量转账到零钱查询BUG [#I5E2X7](https://gitee.com/felord/payment-spring-boot/issues/I5E2X7)
- feat: 移除了被标记过期的API包括基于微信支付V2版本的分账实现使用相关接口的同学需要针对性的进行迁移
- feat: 增加证书绝对路径实现
- 配置项增加`certAbsolutePath`字段用来定义证书的绝对路径,优先级高于`certPath`当这两个路径都不配置时采用classpath路径`wechat/apiclient_cert.p12` [#73](https://github.com/NotFound403/payment-spring-boot/issues/73)
#### 服务商
- feat: 实现服务商商户进件-特约商户进件相关API
- feat: 实现点金计划,适用于服务商
- feat: 实现行业方案-电商收付通
- feat: 实现行业方案-智慧商圈
- feat: 实现其它能力-银行组件(服务商)
- enhance: 服务商分账新增下载账单接口
- enhance: 新增服务商退款回调接口
#### 通用能力
- feat: 实现其它能力-图片、视频上传
- feat: 支付即服务,适用于服务商和直连商户
## 1.0.13.RELEASE
### 微信支付
#### 商家券
- feat: 商家券增加营销补差付款API
- feat: 商家券增加查询营销补差付款单详情API
#### 微信分账
- feat: 新增申请分账账单API
#### 微信支付分
- feat: 新增商户申请获取支付分对账单API
- feat: 实现支付分停车服务API
- 新增查询车牌服务开通信息API
- 新增创建停车入场API
- 新增扣费受理API
- 新增查询订单API
- 新增停车入场状态变更通知API
- 新增订单支付结果通知API
## 修复
- fix: NPE without notifyUrl[#59](https://github.com/NotFound403/payment-spring-boot/issues/59)
## 依赖升级
- 升级**Spring Boot** `2.4.2``2.7.0`
- 升级**alipay-sdk-java** `4.10.167.ALL``4.31.7.ALL`
## 1.0.12.RELEASE
- refector: 变更依赖管理方式交由spring-boot-dependencies管理依赖([#40](https://github.com/NotFound403/payment-spring-boot/pull/40))
- 微信支付
- fix: 修复多租户配置下,平台证书刷新错误的问题([#49](https://github.com/NotFound403/payment-spring-boot/issues/49))
- fix: 分账API描述符错误([#48](https://github.com/NotFound403/payment-spring-boot/issues/48)) 。
- refactor: 避免受jackson类库xml模块的影响
- refactor: V2签名优化
## 1.0.11.RELEASE
- 微信支付
- feat: bcprov-jdk15to18算法库从1.66 升级到 1.67
- feat: 微信支付 《支付通知API》新增优惠功能promotion_detail字段
- feat: 微信支付基础支付《申请退款API》、《查询退款API》新增字段 from退款出资账户及金额
- feat: 现在支持V3分账功能目前只支持直连商户分账`WechatProfitsharingApi`和服务商分账`WechatPartnerProfitsharingApi`
- feat: 完善V3批量转账到零钱API增加实现转账明细电子回单受理API、查询转账明细电子回单受理结果API、查询账户实时余额API、查询账户日终余额API、商户银行来账查询API
- refactor: 微信支付分分账标记默认改为不分账
- refactor: 平台证书刷新逻辑优化 ([#I3NGSB](https://gitee.com/felord/payment-spring-boot/issues/I3NGSB))
- refactor: 交易账单和资金账单现在能够正常的下载文件了可以根据参数自动选择下载为gzip或者txt文件
- fix: 批量转账到零钱:微信明细单号查询明细单API,商家明细单号查询明细单API 参数错误
- fix: 修复查询代金券参数的错误
- 支付宝
- feat: 支付宝增加字段`classpathUsed`来标识是否使用类路径,默认`true`。证书路径可依此来决定是使用绝对路径还是类路径
## 1.0.10.RELEASE
- 微信支付
- feat: 微信支付V2分账接口实现感谢**zacone**同学贡献的PR
- factor: 优化证书加载方式
- factor: 商家券修改API的请求方式变更为`Patch`
- fix: 修复微信支付V3中native支付通知回调`successTime`字段无时区信息的问题([#I3ED43](https://gitee.com/felord/payment-spring-boot/issues/I3ED43))
- 支付宝
- fix: 修复支付宝Maven打包无法读取证书的问题([#24](https://github.com/NotFound403/payment-spring-boot/issues/24))
## 1.0.9.RELEASE
- 微信支付
- refactor: `WechatPartnerPayApi` 加入**Spring IOC**
- fix: 支付分支付成功回调反序列化异常 ([#21](https://github.com/NotFound403/payment-spring-boot/issues/21))
- fix: 修复枚举空指针问题 ([#22](https://github.com/NotFound403/payment-spring-boot/issues/22))
## 1.0.8.RELEASE
- 微信支付
- feat: 对基础支付-服务商支付进行支持
- refactor: 在异常返回时对非2xx状态返回的元信息进行包装方便序列化([#16](https://github.com/NotFound403/payment-spring-boot/issues/16))
- fix: 修复退款数据中时间无法解析的异常([#13](https://github.com/NotFound403/payment-spring-boot/issues/13))
- fix: 修复类成员的属性([#14](https://github.com/NotFound403/payment-spring-boot/issues/14))
- fix: 查询并下载转账电子回单API接口下载文件接口签名失败([#18](https://github.com/NotFound403/payment-spring-boot/issues/18))
## 1.0.7.RELEASE
- 微信支付
- refactor: X509证书加载优化。
- refactor: 移除过期的`WechatPayRefundApi`
- refactor: 优化RestTemplate在低版本引起的一个I/O异常,详见 [spring-framework#21321](https://github.com/spring-projects/spring-framework/issues/21321)。
- refactor: 在请求头Content-Type中声明字符集UTF-8,避免中文乱码。
- fix: 修复退款回调中退款状态枚举无法正确被解析的异常([#11](https://github.com/NotFound403/payment-spring-boot/issues/11))。
## 1.0.6.RELEASE
- 微信支付
- feat:实现微信支付V3批量转账到零钱所有APIWechatBatchTransferApi助力抗击新冠疫情。
- feat:实现微信支付V3退款以及退款通知等所有退款相关的API推荐使用新的V3退款。
- refactor: V2退款进入过期模式由于V3已经推出了退款功能所以V2退款 WechatPayRefundApi 被标记为 Deprecated 未来会被移除。
- refactor: 交易状态增加等待扣款状态,根据微信最新的业务变动增加 “ACCEPT” 字段用来标记“已接收,等待扣款”状态。
## 1.0.5.RELEASE
- 微信支付
- feat:增加V2退款接口
- feat:增加V2企业付款到零钱接口
- feat:增加V2红包接口
- refactor:优化了一些底层功能
- refactor:调整了支付配置Spring注入的顺序
- refactor:JCE由SPI提供不再使用JDK内置
- fix: 关单接口调用异常
## 1.0.4.RELEASE
- 微信支付
- feat: 增加微信支付商家券相关接口`WechatMarketingBusiFavorApi`,商家券请阅读相关产品文档。
- feat: 代金券功能增加发放消费卡接口。
- refactor: 现在app支付、小程序支付返回所有客户端拉起支付的参数不再需要用户再进行签名操作了。
- refactor: 其它一些代码优化。
- build: SDK开发环境 Spring Boot 版本升级到2.4.2。
- fix: 支付分`RiskFund`下枚举无法使用的问题[(#2)](https://github.com/NotFound403/payment-spring-boot/issues/2)。
## 1.0.3.RELEASE
- 微信支付
- feat: 完善合单支付账单
1. 增加合单支付-申请交易账单API。
2. 增加合单支付-申请资金账单API。
- fix: #I2BCMZ 合单支付url不正确的问题。
- fix: 微信支付能够正确根据环境条件动态启用了,修复了不配置微信支付时,无法启用支付宝的问题。
1. 当配置中存在`wechat.pay.v3`配置时,微信支付启用;否则微信支付不启用,不会再影响支付宝的运行。
- refactor: 先享卡优化
## 1.0.2.RELEASE
- 微信支付
- feat: 接入微信支付分
- feat: 接入微信支付先享卡
- fix: 支付回调参数不全的问题
## 1.0.1.RELEASE
- 微信支付
- 基础支付-商户直连 bugfix
- 合单支付
## 1.0.0.RELEASE
- 微信支付
- 基础支付-商户直连
- 代金券
- 多租户
- 支付宝
- 仅仅引入支付宝SDK后续维护以支付宝SDK变动为准
- 支付宝暂时不支持多租户