| | |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.slf4j.Logger; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.http.*; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.web.client.RestTemplate; |
| | |
| | | private static final Logger logger = LoggerFactory.getLogger(FuiouPayAdapt.class); |
| | | |
| | | //微信支付 |
| | | public static final String PAY_UNIFIED_ORDER_URL = "https://aipaytest.fuioupay.com/aggregatePay/preCreate"; |
| | | @Value("${fuiou.pay.unified-order-url}") |
| | | public String PAY_UNIFIED_ORDER_URL; |
| | | |
| | | |
| | | private static final String VERSION = "1.0"; |
| | |
| | | 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("order_amt", (int)(payAmount*100)); |
| | | paramMap.put("mchnt_order_no", orderPre + orderNum); |
| | | paramMap.put("txn_begin_ts", DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_DEFAULT)); |
| | | paramMap.put("goods_des", systemName + feeName); |