| | |
| | | double payAmount = PayUtil.getPayAmountByEnv(MappingCache.getValue(MappingConstant.ENV_DOMAIN,"HC_ENV"), paymentOrderDto.getMoney()); |
| | | //添加或更新支付记录(参数跟进自己业务需求添加) |
| | | |
| | | // String orderPre = smallWeChatDto.getOrderPre(); |
| | | // paymentOrderDto.setOrderId(orderPre + paymentOrderDto.getOrderId()); |
| | | |
| | | JSONObject resMap = null; |
| | | if (TRADE_TYPE_LETPAY.equals(tradeType)){ |
| | | resMap = this.java110UnifieldOrder(paymentOrderDto.getName(), |
| | |
| | | feeName = feeName.substring(0, 126); |
| | | } |
| | | // String orderPre = CommunitySettingFactory.getValue(smallWeChatDto.getObjId(), "FUIOU_ORDER_PRE"); |
| | | String orderPre = smallWeChatDto.getOrderPre(); |
| | | JSONObject paramMap = new JSONObject(); |
| | | if (tradeType == null){ |
| | | paramMap.put("version", VERSION); |
| | | paramMap.put("mchnt_cd", smallWeChatDto.getMchId()); // 富友分配给二级商户的商户号 |
| | | paramMap.put("random_str", PayUtil.makeUUID(32)); |
| | | paramMap.put("order_amt", PayUtil.moneyToIntegerStr(payAmount)); |
| | | paramMap.put("mchnt_order_no", orderPre + orderNum); |
| | | paramMap.put("mchnt_order_no", orderNum); |
| | | paramMap.put("txn_begin_ts", DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_DEFAULT)); |
| | | paramMap.put("goods_des", "cesdasw"); |
| | | paramMap.put("goods_des", feeName); |
| | | paramMap.put("term_id", "abcdefgh"); |
| | | paramMap.put("term_ip", PayUtil.getLocalIp()); |
| | | paramMap.put("notify_url", notifyUrl + "?wId=" + WechatFactory.getWId(smallWeChatDto.getAppId())); |
| | |
| | | paramMap.put("mchnt_cd", smallWeChatDto.getMchId()); // 富友分配给二级商户的商户号 |
| | | paramMap.put("random_str", PayUtil.makeUUID(32)); |
| | | paramMap.put("order_amt", PayUtil.moneyToIntegerStr(payAmount)); |
| | | paramMap.put("mchnt_order_no", orderPre + orderNum); |
| | | paramMap.put("mchnt_order_no", orderNum); |
| | | paramMap.put("txn_begin_ts", DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_DEFAULT)); |
| | | paramMap.put("goods_des", "cesdasw"); |
| | | paramMap.put("goods_des", feeName); |
| | | paramMap.put("term_id", "abcdefgh"); |
| | | paramMap.put("term_ip", PayUtil.getLocalIp()); |
| | | paramMap.put("notify_url", notifyUrl + "?wId=" + WechatFactory.getWId(smallWeChatDto.getAppId())); |