找回密码
 立即注册
查看: 28|回复: 0

SpringBoot3+SSM的企业级Java项目实战外卖小程序之微信支付

[复制链接]

153

主题

5

精华

157

金币

技术维护QQ:515138

积分
339
发表于 2025-12-29 08:29:12 | 显示全部楼层 |阅读模式
SpringBoot3+SSM的企业级Java项目实战外卖小程序之微信支付

本项目选择**小程序支付**
参考:https://pay.weixin.qq.com/static/product/product_index.shtml

微信小程序支付时序图:

image-20221214223910840.png

https://pay.weixin.qq.com/doc/v3/merchant/4012791894
属性层:
  1. package com.zidiu.properties;
  2. import lombok.Data;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import org.springframework.stereotype.Component;
  5. @Component
  6. @ConfigurationProperties(prefix = "jinhei.wechat")
  7. @Data
  8. public class WeChatProperties {
  9.     private String appid; //小程序的appid
  10.     private String secret; //小程序的秘钥
  11.     private String mchid; //商户号
  12.     private String mchSerialNo; //商户API证书的证书序列号
  13.     private String privateKeyFilePath; //商户私钥文件
  14.     private String apiV3Key; //证书解密的密钥
  15.     private String weChatPayCertFilePath; //平台证书
  16.     private String notifyUrl; //支付成功的回调地址
  17.     private String refundNotifyUrl; //退款成功的回调地址
  18. }
复制代码
jinhei-waimai.zip (810.38 KB, 下载次数: 0, 售价: 100 金币)



上一篇:SpringBoot3+SSM的企业级Java项目实战外卖小程序之用户下单
下一篇:Spring Task任务调度工具,定时任务开启
网站建设,公众号小程序开发,系统定制,软件App开发,技术维护【联系我们】手机/微信:17817817816 QQ:515138

QQ|Archiver|自丢网 ( 粤ICP备2024252464号-1 )

GMT+8, 2026-1-13 16:14

专注于网站建设,公众号小程序制作,商城小程序,系统定制,软件App开发

【联系我们】手机/微信:17817817816 QQ:515138

快速回复 返回顶部 返回列表