# 微信小程序微信支付 后端源码 +视频演示 SpringBoot版 **Repository Path**: little-turtle-z/wxpay-applet-back ## Basic Information - **Project Name**: 微信小程序微信支付 后端源码 +视频演示 SpringBoot版 - **Description**: 微信小程序 支付-支付回调 退款-退款回调 通俗易懂 代码快速上手 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 9 - **Forks**: 1 - **Created**: 2023-08-05 - **Last Updated**: 2025-03-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Logo

微信支付 V3 SpringBoot版

### 演示视频 | 视频方 | 视频地址 | |---|---| | B站 | [演示地址](https://www.bilibili.com/video/BV16j411r7HN) |

上手指南

#### 微信支付参数获取 ```sh appId: 微信开放平台申请APPID mch_id: 微信商户号 mch_serial_no: 商户证书序列号 api_v3_key: api密钥 private_key: 商户密钥 入库格式: -----BEGIN PRIVATE KEY----- xxxx -----END PRIVATE KEY----- 上述参数 获取 可按此文档 https://pay.weixin.qq.com/wiki/doc/apiv3/open/devpreparation/chapter1_1_1.shtml openId: 用户在直连商户appid下的唯一标识 获取方式->微信登录 微信登录源码分享: https://gitee.com/little-turtle-z/wechat-login 微信登录参考文档: 小程序-> https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.login.html uniapp-> https://uniapp.dcloud.net.cn/tutorial/app-oauth-weixin.html ``` #### 代码获取 ```sh git clone https://gitee.com/little-turtle-z/wxpay-applet-back.git ``` #### 源代码获取 需配置点 1. config->mybatisPlus->CodeGenerator 数据库连接 需配置 2. config->mybatisPlus->MybatisPlusConfig 扫描包 需配置 3. constant->SystemConstant 小程序支付回调接口 需配置 4. application.yml 数据库连接 需配置 ### 源码分享地址 | 前后端 | 项目地址 | |---|---| | 前端 | [代码地址](https://gitee.com/little-turtle-z/wxpay-applet-front) | | 后端 | [代码地址](https://gitee.com/little-turtle-z/wxpay-applet-back) | ### 支付流程简要 ![流程简要](https://foruda.gitee.com/images/1691220893690753219/7c6072a2_8992400.jpeg) ### 目录结构 ```sh |--src | |--main | | |--api 返回前端结果集统一处理 | | |--config | | | |--mybatisPlus | | |--constant | | |--exception | | |--controller | | |--service | | |--pojo | | |--utils | | | |--WxPayUtil 微信支付工具包 | |--resources | | |--application.yml |--wxpay.sql 数据库生成文件 ```