weixin-java-tools/spring-boot-starters/wx-java-pay-spring-boot-starter/README.md

40 lines
904 B
Markdown
Raw Normal View History

2019-05-18 15:46:45 +08:00
# 使用说明
1. 在自己的Spring Boot项目里引入maven依赖
```xml
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>wx-java-pay-spring-boot-starter</artifactId>
2019-05-18 15:46:45 +08:00
<version>${version}</version>
</dependency>
```
2. 添加配置(application.yml)
2022-08-10 15:52:23 +08:00
###### 1V2版本
2019-05-18 15:46:45 +08:00
```yml
wx:
pay:
appId:
mchId:
mchKey:
2019-05-18 15:46:45 +08:00
subAppId:
subMchId:
keyPath:
```
2022-08-10 15:52:23 +08:00
###### 2V3版本
```yml
wx:
pay:
appId: xxxxxxxxxxx
mchId: 15xxxxxxxxx #商户id
apiV3Key: Dc1DBwSc094jACxxxxxxxxxxxxxxx #V3密钥
certSerialNo: 62C6CEAA360BCxxxxxxxxxxxxxxx
privateKeyPath: classpath:cert/apiclient_key.pem #apiclient_key.pem证书文件的绝对路径或者以classpath:开头的类路径
privateCertPath: classpath:cert/apiclient_cert.pem #apiclient_cert.pem证书文件的绝对路径或者以classpath:开头的类路径
```
2019-05-18 15:46:45 +08:00