| | |
| | | import com.java110.utils.util.*; |
| | | 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.Service; |
| | | import org.springframework.web.client.RestTemplate; |
| | |
| | | public static final String TRADE_TYPE_MWEB = "MWEB"; |
| | | public static final String TRADE_TYPE_APP = "APP"; |
| | | |
| | | 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("mchnt_cd", smallWeChatDto.getMchId()); // 富友分配给二级商户的商户号 |
| | | paramMap.put("order_type", "WECHAT"); |
| | | // paramMap.put("order_amt", PayUtil.moneyToIntegerStr(payAmount)); |
| | | paramMap.put("order_amt", 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", feeName); |