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;
|
}
|