# boot-pay **Repository Path**: Marsfactory/boot-pay ## Basic Information - **Project Name**: boot-pay - **Description**: 聚合支付整合 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2026-11-04 - **Last Updated**: 2026-11-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 暖石小店 前后不分离的小型商城:Spring Boot 3 + Thymeleaf + MyBatis-Plus + SQLite,已对接 [聚合支付](https://pay.mars-coder.cn/doc_old.html) 页面跳转支付。 ## 启动 ```bash mvn spring-boot:run ``` 浏览器打开 http://localhost:8080 SQLite 文件会自动创建在 `data/mall.db`。首次启动会写入 6 件演示商品。 ## 支付配置 见 `src/main/resources/application.yml`: - `pay.pid` / `pay.key`:商户号和密钥 - `pay.public-base-url`:拼进 `notify_url` / `return_url` 的站点前缀 本地调试时,支付完成后浏览器会回跳 `/pay/return`,一般就能把订单标成已支付。 支付平台的异步通知 `/pay/notify` 访问不到本机 `localhost`,正式环境或内网穿透后请把 `pay.public-base-url` 改成公网地址。 ## 下单流程 1. 选商品加入购物车 2. 填写收货信息并选择支付方式(支付宝 / 微信 / QQ / 收银台) 3. 服务端创建待支付订单,按易支付规则 MD5 签名 4. 表单 POST 到 `https://pay.mars-coder.cn/submit.php` 5. 支付成功后验签,更新订单状态,并回复 `success`