package cn.iocoder.yudao.module.system.util.pay;

public class CcbPayConstant {

    // 1. MAC摘要字段顺序（严格按文档）
    public static final String[] MAC_ORDER = {"MERCHANTID", "POSID", "BRANCHID", "ORDERID", "PAYMENT",
            "CURCODE", "TXCODE", "REMARK1", "REMARK2", "TYPE", "PUB",
            "GATEWAY", "CLIENTIP", "REGINFO", "PROINFO", "REFERER",
            "TRADE_TYPE", "SUB_APPID", "SUB_OPENID"};

    // 2. HTTP请求字段顺序（排除PUB，增加MAC）
    public static final String[] REQUEST_ORDER = {"MERCHANTID", "POSID", "BRANCHID", "ORDERID", "PAYMENT",
            "CURCODE", "TXCODE", "REMARK1", "REMARK2", "TYPE",
            "GATEWAY", "CLIENTIP", "REGINFO", "PROINFO", "REFERER",
            "TRADE_TYPE", "SUB_APPID", "SUB_OPENID", "MAC"};
    // 3. 固定参数值
    public static final String PAY_TXCODE = "530590"; // 下单交易码
    public static final String CURCODE = "01";    // 人民币
    public static final String TYPE = "1";        // 防钓鱼开关
    public static final String GATEWAY = "0";     // 网关默认值
    // 4. 接口地址
    public static final String PAY_URL = "https://ibsbjstar.ccb.com.cn/CCBIS/ccbMain?CCB_IBSVersion=V6";



    public static final String CCB_PUB = "c11c511832625ebc5701970b020111";

    public static final String MERCHANTID = "105002072991479";


    public static final String POSID = "096893497";

    public static final String BRANCHID = "441000000";

    public static final String CLOSE_TXCODE = "530560";

    //商户公钥
    public static final String PUB_KEY = "30819d300d06092a864886f70d010101050003818b0030818702818100cb7f208ca0dbdf8a109497da173677a695908f55a986966871c070c2222fdc646a20b40d7fb2271843067354f20e9b715d532382167ec0ec3a9b75861a15ac1092863ae8ab04271b2be81cfcb49fc00ae29bd7d6137aa95701649c2f213f6bb00084aced33789a9effb353d24b41d97ae37cca59c11c511832625ebc5701970b020111";

}
