longz
2026-08-11 b76331c1a1276f6fb3b0b20e522579509ca2622b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.ruoyi.payment.icbc.config;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
 
/**
 * 工行支付配置,实际值从 Nacos 的 icbc.pay 前缀读取。
 */
@Data
@Component
@Configuration
@ConfigurationProperties(prefix = "icbc.pay")
public class IcbcPayProperties {
    private static final String ICBC_GATEWAY = "https://gw.open.icbc.com.cn/api/cardbusiness";
 
    private String appId;
    private String privateKey;
    private String icbcPublicKey;
    private String signType = "RSA2";
    private String charset = "UTF-8";
    private String format = "json";
    private String gatewayUrl = ICBC_GATEWAY + "/aggregatepay/b2c/online/consumepurchase/V2";
    private String orderQueryUrl = ICBC_GATEWAY + "/aggregatepay/b2c/online/orderqry/V2";
    private String refundUrl = ICBC_GATEWAY + "/aggregatepay/b2c/online/merrefund/V1";
    private String subOrderSplitUrl = ICBC_GATEWAY + "/aggregatepay/b2c/online/sersuborder/V1";
    private String subOrderRefundUrl = ICBC_GATEWAY + "/aggregatepay/b2c/online/sersuborderrefund/V1";
    private String subOrderQueryUrl = ICBC_GATEWAY + "/order/suborderquery/V1";
    private String notifyUrl;
    private String merId;
    private String merPrtclNo;
    private String serviceMerId;
    private String serviceMerPrtclNo;
    /** 平台收入分账接收二级商户编号。 */
    private String platformSubMerId;
    /** 平台收入分账接收二级商户协议编号。 */
    private String platformSubMerPrtclNo;
    private String tpAppId;
    private String wxTpAppId;
    private String aliTpAppId;
    private String spbillCreateIp;
    private String profitSharing;
    private Boolean verifyNotifySign = true;
}