# ccb-pay-spring-boot-starter **Repository Path**: ccubee/ccb-pay-spring-boot-starter ## Basic Information - **Project Name**: ccb-pay-spring-boot-starter - **Description**: 建行微信对接 参考代码 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2022-08-27 - **Last Updated**: 2025-07-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 建行支付流程 ![img.png](img.png) # 使用步骤 ## 第一步 将`union-pay-spring-boot-starter`模块下,lib文件夹下的建行验签 `netpay.jar`包导入到本地仓库 ``` mvn install:install-file "-Dfile=F:\work\java\ccb\netpay.jar" "-DgroupId=CCBSign" "-DartifactId=RSASig" "-Dversion=1.0" "-Dpackaging=jar" ``` ## 导入依赖 ``` com.example union-pay-spring-boot-starter 0.0.1-SNAPSHOT compile ``` ## 设置配置文件 ```yml spring: union-pay: enabled: true ccb: app-id: appId url: https://ibsbjstar.ccb.com.cn/CCBIS/ccbMain?CCB_IBSVersion=V6 merchant-id: 建行商户号 pos-id: '建行柜台号' # 因为前面带0会去掉,故这里加引号 branch-id: 分行代码 cur-code: '01' tx-code: 530590 # 银行交易吗 gateway: 0 type: 1 pub: 公钥后三十位 ``` 然后导入使用 `CcbPayService` 调用方法就可以了 测试方法见 `pay-ccb-example` 下的 `PayRest` 类