| | |
| | | CommonCache.setValue("nativeQrcodePayment_" + token, reqJson.toJSONString(), CommonCache.PAY_DEFAULT_EXPIRE_TIME); |
| | | JSONObject result = new JSONObject(); |
| | | |
| | | String notifyUrl = UrlCache.getOwnerUrl() + "/app/payment/notify/wechat/"+appId+"/"+reqJson.getString("paymentPoolId"); |
| | | |
| | | // |
| | | // |
| | | // List<PaymentKeyDto> paymentKeyDtos = null; |
| | |
| | | paramMap.put("version", VERSION); |
| | | paramMap.put("mchnt_cd", smallWeChatDto.getMchId()); // 富友分配给二级商户的商户号 |
| | | paramMap.put("random_str", PayUtil.makeUUID(32)); |
| | | paramMap.put("order_amt", "1"); |
| | | paramMap.put("order_amt", (int)(paymentOrderDto.getMoney()*100)); |
| | | String generatorId = GenerateCodeFactory.getGeneratorId("81"); |
| | | paramMap.put("mchnt_order_no", smallWeChatDto.getOrderPre() + generatorId); |
| | | paramMap.put("txn_begin_ts", DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_DEFAULT)); |
| | | paramMap.put("goods_des", systemName + "测试"); |
| | | paramMap.put("term_id", "abcdefgh"); |
| | | paramMap.put("term_ip", PayUtil.getLocalIp()); |
| | | paramMap.put("notify_url", "?wId=" + WechatFactory.getWId(smallWeChatDto.getAppId())); |
| | | paramMap.put("notify_url", notifyUrl + "?wId=" + WechatFactory.getWId(smallWeChatDto.getAppId())); |
| | | paramMap.put("trade_type", "WXBXLET"); |
| | | paramMap.put("order_type", "WECHAT"); |
| | | // paramMap.put("sub_openid", openid); |