com.github.binarywang.wxpay.config.WxPayConfig.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(310)

本文整理了Java中com.github.binarywang.wxpay.config.WxPayConfig.<init>()方法的一些代码示例,展示了WxPayConfig.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WxPayConfig.<init>()方法的具体详情如下:
包路径:com.github.binarywang.wxpay.config.WxPayConfig
类名称:WxPayConfig
方法名:<init>

WxPayConfig.<init>介绍

暂无

代码示例

代码示例来源:origin: jmdhappy/xxpay-master

/**
 * 获取微信支付配置
 * @param configParam
 * @return
 */
public static WxPayConfig getWxPayConfig(String configParam) {
  WxPayConfig wxPayConfig = new WxPayConfig();
  JSONObject paramObj = JSON.parseObject(configParam);
  wxPayConfig.setMchId(paramObj.getString("mchId"));
  wxPayConfig.setAppId(paramObj.getString("appId"));
  wxPayConfig.setMchKey(paramObj.getString("key"));
  return wxPayConfig;
}

代码示例来源:origin: jmdhappy/xxpay-master

/**
 * 获取微信支付配置
 * @param configParam
 * @return
 */
public static WxPayConfig getWxPayConfig(String configParam) {
  WxPayConfig wxPayConfig = new WxPayConfig();
  JSONObject paramObj = JSON.parseObject(configParam);
  wxPayConfig.setMchId(paramObj.getString("mchId"));
  wxPayConfig.setAppId(paramObj.getString("appId"));
  wxPayConfig.setMchKey(paramObj.getString("key"));
  return wxPayConfig;
}

代码示例来源:origin: jmdhappy/xxpay-master

/**
 * 获取微信支付配置
 * @param configParam
 * @return
 */
public static WxPayConfig getWxPayConfig(String configParam) {
  WxPayConfig wxPayConfig = new WxPayConfig();
  JSONObject paramObj = JSON.parseObject(configParam);
  wxPayConfig.setMchId(paramObj.getString("mchId"));
  wxPayConfig.setAppId(paramObj.getString("appId"));
  wxPayConfig.setMchKey(paramObj.getString("key"));
  return wxPayConfig;
}

代码示例来源:origin: jmdhappy/xxpay-master

/**
 * 获取微信支付配置
 * @param configParam
 * @param tradeType
 * @param certRootPath
 * @param notifyUrl
 * @return
 */
public static WxPayConfig getWxPayConfig(String configParam, String tradeType, String certRootPath, String notifyUrl) {
  WxPayConfig wxPayConfig = new WxPayConfig();
  JSONObject paramObj = JSON.parseObject(configParam);
  wxPayConfig.setMchId(paramObj.getString("mchId"));
  wxPayConfig.setAppId(paramObj.getString("appId"));
  wxPayConfig.setKeyPath(certRootPath + File.separator + paramObj.getString("certLocalPath"));
  wxPayConfig.setMchKey(paramObj.getString("key"));
  wxPayConfig.setNotifyUrl(notifyUrl);
  wxPayConfig.setTradeType(tradeType);
  return wxPayConfig;
}

代码示例来源:origin: jmdhappy/xxpay-master

/**
 * 获取微信支付配置
 * @param configParam
 * @param tradeType
 * @param certRootPath
 * @param notifyUrl
 * @return
 */
public static WxPayConfig getWxPayConfig(String configParam, String tradeType, String certRootPath, String notifyUrl) {
  WxPayConfig wxPayConfig = new WxPayConfig();
  JSONObject paramObj = JSON.parseObject(configParam);
  wxPayConfig.setMchId(paramObj.getString("mchId"));
  wxPayConfig.setAppId(paramObj.getString("appId"));
  wxPayConfig.setKeyPath(certRootPath + File.separator + paramObj.getString("certLocalPath"));
  wxPayConfig.setMchKey(paramObj.getString("key"));
  wxPayConfig.setNotifyUrl(notifyUrl);
  wxPayConfig.setTradeType(tradeType);
  return wxPayConfig;
}

代码示例来源:origin: jmdhappy/xxpay-master

/**
 * 获取微信支付配置
 * @param configParam
 * @param tradeType
 * @param certRootPath
 * @param notifyUrl
 * @return
 */
public static WxPayConfig getWxPayConfig(String configParam, String tradeType, String certRootPath, String notifyUrl) {
  WxPayConfig wxPayConfig = new WxPayConfig();
  JSONObject paramObj = JSON.parseObject(configParam);
  wxPayConfig.setMchId(paramObj.getString("mchId"));
  wxPayConfig.setAppId(paramObj.getString("appId"));
  wxPayConfig.setKeyPath(certRootPath + File.separator + paramObj.getString("certLocalPath"));
  wxPayConfig.setMchKey(paramObj.getString("key"));
  wxPayConfig.setNotifyUrl(notifyUrl);
  wxPayConfig.setTradeType(tradeType);
  return wxPayConfig;
}

代码示例来源:origin: linlinjava/litemall

@Bean
public WxPayConfig wxPayConfig() {
  WxPayConfig payConfig = new WxPayConfig();
  payConfig.setAppId(properties.getAppId());
  payConfig.setMchId(properties.getMchId());
  payConfig.setMchKey(properties.getMchKey());
  payConfig.setNotifyUrl(properties.getNotifyUrl());
  payConfig.setKeyPath(properties.getKeyPath());
  payConfig.setTradeType("JSAPI");
  payConfig.setSignType("MD5");
  return payConfig;
}

代码示例来源:origin: liuweijw/fw-cloud-framework

/**
 * 获取微信支付配置
 */
public static WxPayConfig getWxPayConfig(String configParam) {
  WxPayConfig wxPayConfig = new WxPayConfig();
  JSONObject paramObj = JSON.parseObject(configParam);
  wxPayConfig.setMchId(paramObj.getString("mchId"));
  wxPayConfig.setAppId(paramObj.getString("appId"));
  wxPayConfig.setMchKey(paramObj.getString("key"));
  return wxPayConfig;
}

代码示例来源:origin: liuweijw/fw-cloud-framework

/**
 * 获取微信支付配置
 */
public static WxPayConfig getWxPayConfig(String configParam, String tradeType,
    String certRootPath, String notifyUrl) {
  WxPayConfig wxPayConfig = new WxPayConfig();
  JSONObject paramObj = JSON.parseObject(configParam);
  wxPayConfig.setMchId(paramObj.getString("mchId"));
  wxPayConfig.setAppId(paramObj.getString("appId"));
  wxPayConfig.setKeyPath(certRootPath + File.separator + paramObj.getString("certLocalPath"));
  wxPayConfig.setMchKey(paramObj.getString("key"));
  wxPayConfig.setNotifyUrl(notifyUrl);
  wxPayConfig.setTradeType(tradeType);
  return wxPayConfig;
}

代码示例来源:origin: xautlx/s2jh4net

@PostConstruct
  public void init() {
    WxPayConfig payConfig = new WxPayConfig();
    payConfig.setAppId(appId);
    payConfig.setMchId(mchId);
    payConfig.setMchKey(mchKey);
    payConfig.setKeyPath(keyPath);

    this.setConfig(payConfig);
  }
}

代码示例来源:origin: ustcwudi/springboot-seed

@Bean
  @ConditionalOnMissingBean
  public WxPayService wxService() {
    WxPayConfig payConfig = new WxPayConfig();
    payConfig.setAppId(StringUtils.trimToNull(this.properties.getAppId()));
    payConfig.setMchId(StringUtils.trimToNull(this.properties.getMchId()));
    payConfig.setMchKey(StringUtils.trimToNull(this.properties.getMchKey()));
    payConfig.setSubAppId(StringUtils.trimToNull(this.properties.getSubAppId()));
    payConfig.setSubMchId(StringUtils.trimToNull(this.properties.getSubMchId()));
    payConfig.setKeyPath(StringUtils.trimToNull(this.properties.getKeyPath()));

    WxPayService wxPayService = new WxPayServiceImpl();
    wxPayService.setConfig(payConfig);
    return wxPayService;
  }
}

相关文章