Commit e615be971e57fb6d0d2132df1129555d5e0e63b7
1 parent
d76bc7aa
mall + pay:
1、测试通过微信小程序支付
Showing
2 changed files
with
16 additions
and
2 deletions
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/app/order/AppPayOrderController.http
| @@ -36,3 +36,17 @@ tenant-id: {{appTenentId}} | @@ -36,3 +36,17 @@ tenant-id: {{appTenentId}} | ||
| 36 | "openid": "ockUAwIZ-0OeMZl9ogcZ4ILrGba0" | 36 | "openid": "ockUAwIZ-0OeMZl9ogcZ4ILrGba0" |
| 37 | } | 37 | } |
| 38 | } | 38 | } |
| 39 | + | ||
| 40 | +### /pay/create 提交支付订单【wx_lite】 | ||
| 41 | +POST {{appApi}}/pay/order/submit | ||
| 42 | +Content-Type: application/json | ||
| 43 | +Authorization: Bearer {{appToken}} | ||
| 44 | +tenant-id: {{appTenentId}} | ||
| 45 | + | ||
| 46 | +{ | ||
| 47 | + "id": 202, | ||
| 48 | + "channelCode": "wx_lite", | ||
| 49 | + "channelExtras": { | ||
| 50 | + "openid": "oLefc4g5GjKWHJjLjMSXB3wX0fD0" | ||
| 51 | + } | ||
| 52 | +} |
yudao-server/src/main/resources/application-local.yaml
| @@ -173,8 +173,8 @@ wx: | @@ -173,8 +173,8 @@ wx: | ||
| 173 | key-prefix: wx # Redis Key 的前缀 TODO 芋艿:解决下 Redis key 管理的配置 | 173 | key-prefix: wx # Redis Key 的前缀 TODO 芋艿:解决下 Redis key 管理的配置 |
| 174 | http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台 | 174 | http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台 |
| 175 | miniapp: # 小程序配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-miniapp-spring-boot-starter/README.md 文档 | 175 | miniapp: # 小程序配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-miniapp-spring-boot-starter/README.md 文档 |
| 176 | - appid: wx63c280fe3248a3e7 | ||
| 177 | - secret: 6f270509224a7ae1296bbf1c8cb97aed | 176 | + appid: wx62056c0d5e8db250 |
| 177 | + secret: 333ae72f41552af1e998fe1f54e1584a | ||
| 178 | config-storage: | 178 | config-storage: |
| 179 | type: RedisTemplate # 采用 RedisTemplate 操作 Redis,会自动从 Spring 中获取 | 179 | type: RedisTemplate # 采用 RedisTemplate 操作 Redis,会自动从 Spring 中获取 |
| 180 | key-prefix: wa # Redis Key 的前缀 TODO 芋艿:解决下 Redis key 管理的配置 | 180 | key-prefix: wa # Redis Key 的前缀 TODO 芋艿:解决下 Redis key 管理的配置 |