|
|
@@ -47,29 +47,29 @@ public class AppTest { |
|
|
/** |
|
|
/** |
|
|
* 创建交易信息 参数 |
|
|
* 创建交易信息 参数 |
|
|
*/ |
|
|
*/ |
|
|
IdWorker idWorker = IdWorker.get(); |
|
|
|
|
|
|
|
|
|
|
|
paramMap.put("sourceType", EnumUserType.BUSINESS_CIRCLE.getCode().toString()); |
|
|
|
|
|
|
|
|
|
|
|
paramMap.put("transactionId",String.valueOf(idWorker.nextId()));//***订单Id |
|
|
|
|
|
paramMap.put("shopNumber","1001");//***门店唯一标识 对应双方平台门店 |
|
|
|
|
|
paramMap.put("shopName","百丽");//门店名称 |
|
|
|
|
|
paramMap.put("userNumber","441388943427399680");//***会员Id |
|
|
|
|
|
// paramMap.put("userPhone","18872592633");//会员手机号 |
|
|
|
|
|
paramMap.put("timeEnd","2021-06-14 01:50:11");//***付款时间(yyyy-MM-dd HH:mm:ss) |
|
|
|
|
|
paramMap.put("amount","9000");//***付款金额(分) |
|
|
|
|
|
// paramMap.put("summary","");//付款摘要 |
|
|
|
|
|
|
|
|
// IdWorker idWorker = IdWorker.get(); |
|
|
|
|
|
// |
|
|
|
|
|
//// paramMap.put("sourceType", EnumUserType.THIRD_CIRCLE.getCode().toString()); |
|
|
|
|
|
// |
|
|
|
|
|
// paramMap.put("transactionId",String.valueOf(idWorker.nextId()));//***订单Id |
|
|
|
|
|
// paramMap.put("shopNumber","1001");//***门店唯一标识 对应双方平台门店 |
|
|
|
|
|
// paramMap.put("shopName","百丽");//门店名称 |
|
|
|
|
|
// paramMap.put("userNumber","441388943427399680");//***会员Id |
|
|
|
|
|
//// paramMap.put("userPhone","18872592633");//会员手机号 |
|
|
|
|
|
// paramMap.put("timeEnd","2021-06-14 12:50:11");//***付款时间(yyyy-MM-dd HH:mm:ss) |
|
|
|
|
|
// paramMap.put("amount","9000");//***付款金额(分) |
|
|
|
|
|
//// paramMap.put("summary","");//付款摘要 |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 交易退款信息 参数 |
|
|
* 交易退款信息 参数 |
|
|
*/ |
|
|
*/ |
|
|
// IdWorker idWorker = IdWorker.get(); |
|
|
|
|
|
|
|
|
IdWorker idWorker = IdWorker.get(); |
|
|
// paramMap.put("sourceType", EnumUserType.BUSINESS_CIRCLE.getCode().toString()); |
|
|
// paramMap.put("sourceType", EnumUserType.BUSINESS_CIRCLE.getCode().toString()); |
|
|
// paramMap.put("transactionId","564097161459499008");//***订单Id |
|
|
|
|
|
// paramMap.put("refundTime","2021-06-14 00:58:00");//***退款时间(yyyy-MM-dd HH:mm:ss) |
|
|
|
|
|
//// paramMap.put("refundAmount","1000");//退款金额(分) |
|
|
|
|
|
// paramMap.put("refundSummary","我要退款");//付款摘要 |
|
|
|
|
|
// paramMap.put("refundId",String.valueOf(idWorker.nextId()));//退款订单号 |
|
|
|
|
|
|
|
|
paramMap.put("transactionId","564279392066437120");//***订单Id |
|
|
|
|
|
paramMap.put("refundTime","2021-06-14 00:58:00");//***退款时间(yyyy-MM-dd HH:mm:ss) |
|
|
|
|
|
// paramMap.put("refundAmount","1000");//退款金额(分) |
|
|
|
|
|
paramMap.put("refundSummary","我要退款1");//付款摘要 |
|
|
|
|
|
paramMap.put("refundId",String.valueOf(idWorker.nextId()));//退款订单号 |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 积分抵扣 参数 |
|
|
* 积分抵扣 参数 |
|
|
@@ -107,14 +107,14 @@ public class AppTest { |
|
|
/** |
|
|
/** |
|
|
* 创建交易信息 接口 |
|
|
* 创建交易信息 接口 |
|
|
*/ |
|
|
*/ |
|
|
String s = HttpUtil.doPost("https://openapitest.malls.iformall.com/api/thirdCircle/order", headMap, JSON.toJSONString(paramMap)); |
|
|
|
|
|
|
|
|
// String s = HttpUtil.doPost("https://openapitest.malls.iformall.com/api/thirdCircle/order", headMap, JSON.toJSONString(paramMap)); |
|
|
// String s = HttpUtil.doPost("http://localhost:7070/public/api/thirdCircle/order", headMap, JSON.toJSONString(paramMap)); |
|
|
// String s = HttpUtil.doPost("http://localhost:7070/public/api/thirdCircle/order", headMap, JSON.toJSONString(paramMap)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 交易退款 接口 |
|
|
* 交易退款 接口 |
|
|
*/ |
|
|
*/ |
|
|
// String s = HttpUtil.doPost("https://openapitest.malls.iformall.com/api/thirdCircle/orderRefund", headMap, JSON.toJSONString(paramMap)); |
|
|
|
|
|
|
|
|
String s = HttpUtil.doPost("https://openapitest.malls.iformall.com/api/thirdCircle/orderRefund", headMap, JSON.toJSONString(paramMap)); |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 积分抵扣 接口 |
|
|
* 积分抵扣 接口 |
|
|
|