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

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

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

WxPayConfig.getAppId介绍

暂无

代码示例

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

String nonceStr = String.valueOf(System.currentTimeMillis());
String appId = wxPayConfig.getAppId();
Map<String, String> configMap = new HashMap<>();

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

String nonceStr = String.valueOf(System.currentTimeMillis());
String appId = wxPayConfig.getAppId();
Map<String, String> configMap = new HashMap<>();

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

String nonceStr = String.valueOf(System.currentTimeMillis());
String appId = wxPayConfig.getAppId();
Map<String, String> configMap = new HashMap<>();

代码示例来源:origin: binarywang/WxJava

@Override
public String createScanPayQrcodeMode1(String productId) {
 //weixin://wxpay/bizpayurl?sign=XXXXX&appid=XXXXX&mch_id=XXXXX&product_id=XXXXXX&time_stamp=XXXXXX&nonce_str=XXXXX
 StringBuilder codeUrl = new StringBuilder("weixin://wxpay/bizpayurl?");
 Map<String, String> params = Maps.newHashMap();
 params.put("appid", this.getConfig().getAppId());
 params.put("mch_id", this.getConfig().getMchId());
 params.put("product_id", productId);
 //这里需要秒,10位数字
 params.put("time_stamp", String.valueOf(System.currentTimeMillis() / 1000));
 params.put("nonce_str", String.valueOf(System.currentTimeMillis()));
 String sign = SignUtils.createSign(params, SignType.MD5, this.getConfig().getMchKey(), null);
 params.put("sign", sign);
 for (String key : params.keySet()) {
  codeUrl.append(key).append("=").append(params.get(key)).append("&");
 }
 String content = codeUrl.toString().substring(0, codeUrl.length() - 1);
 log.debug("扫码支付模式一生成二维码的URL:{}", content);
 return content;
}

代码示例来源:origin: com.github.binarywang/weixin-java-pay

@Override
public String createScanPayQrcodeMode1(String productId) {
 //weixin://wxpay/bizpayurl?sign=XXXXX&appid=XXXXX&mch_id=XXXXX&product_id=XXXXXX&time_stamp=XXXXXX&nonce_str=XXXXX
 StringBuilder codeUrl = new StringBuilder("weixin://wxpay/bizpayurl?");
 Map<String, String> params = Maps.newHashMap();
 params.put("appid", this.getConfig().getAppId());
 params.put("mch_id", this.getConfig().getMchId());
 params.put("product_id", productId);
 //这里需要秒,10位数字
 params.put("time_stamp", String.valueOf(System.currentTimeMillis() / 1000));
 params.put("nonce_str", String.valueOf(System.currentTimeMillis()));
 String sign = SignUtils.createSign(params, SignType.MD5, this.getConfig().getMchKey(), null);
 params.put("sign", sign);
 for (String key : params.keySet()) {
  codeUrl.append(key).append("=").append(params.get(key)).append("&");
 }
 String content = codeUrl.toString().substring(0, codeUrl.length() - 1);
 log.debug("扫码支付模式一生成二维码的URL:{}", content);
 return content;
}

代码示例来源:origin: com.github.binarywang/weixin-java-pay

} else if (TradeType.APP.equals(request.getTradeType())) {
 String appId = getConfig().getAppId();
 Map<String, String> configMap = new HashMap<>();

代码示例来源:origin: binarywang/WxJava

} else if (TradeType.APP.equals(request.getTradeType())) {
 String appId = getConfig().getAppId();
 Map<String, String> configMap = new HashMap<>();

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

String nonceStr = String.valueOf(System.currentTimeMillis());
String appId = wxPayConfig.getAppId();
Map<String, String> configMap = new HashMap<>();

代码示例来源:origin: com.github.binarywang/weixin-java-pay

this.setAppid(config.getAppId());

代码示例来源:origin: binarywang/WxJava

this.setAppid(config.getAppId());

相关文章