Payment Spring Boot[1] 是微信支付 V3 的 Java 实现,仅仅依赖 Spring 内置的一些类库。配置简单方便,可以让开发者快速为 Spring Boot 应用接入微信支付。
最新版本 Maven 坐标为:
<dependency>
<groupId>cn.felord</groupId>
<artifactId>payment-spring-boot-starter</artifactId>
<version>1.0.7.RELEASE</version>
</dependency>
WechatPayRefundApi
。RestTemplate
在低版本引起的一个 I/O 异常,详见 spring-framework#21321[2]。Content-Type
中声明字符集 UTF-8,避免中文乱码。演示项目:payment-spring-boot-samples[4]
文档:Payment Spring Boot 文档[5]
[1]
Payment Spring Boot: https://github.com/NotFound403/payment-spring-boot
[2]
spring-framework#21321: https://github.com/spring-projects/spring-framework/issues/21321
[3]
#11: https://github.com/NotFound403/payment-spring-boot/issues/11
[4]
payment-spring-boot-samples: https://github.com/NotFound403/payment-spring-boot-samples
[5]
Payment Spring Boot 文档: https://notfound403.github.io/payment-spring-boot/#/