|
|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.uas.platform.b2c.common.account.model.User;
|
|
|
import com.uas.platform.b2c.core.support.SystemSession;
|
|
|
import com.uas.platform.b2c.fa.payment.constant.B2CField;
|
|
|
+import com.uas.platform.b2c.fa.payment.constant.StringConstant;
|
|
|
import com.uas.platform.b2c.fa.payment.facade.PingAnFacade;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -102,6 +103,7 @@ public class PingAnFacadeImpl implements PingAnFacade {
|
|
|
map.put("amount", "10");
|
|
|
map.put("currency", "RMB");
|
|
|
map.put("objectName", "test");
|
|
|
+ map.put("OpenId", "20003111462017122041072723");
|
|
|
} else {
|
|
|
String amount = json.getString("amount");
|
|
|
if (StringUtils.isEmpty(amount)) {
|
|
|
@@ -111,12 +113,14 @@ public class PingAnFacadeImpl implements PingAnFacade {
|
|
|
|
|
|
String currency = json.getString("currency");
|
|
|
if (StringUtils.isEmpty(currency)) {
|
|
|
- currency = "RMB";
|
|
|
+ currency = StringConstant.RMB_String;
|
|
|
}
|
|
|
map.put("currency", currency);
|
|
|
|
|
|
String objectName = json.getString("objectName");
|
|
|
map.put("objectName", objectName == null ? "" : objectName);
|
|
|
+ //绑卡之后,会从银联返回一个OpenId;
|
|
|
+ map.put("OpenId", "20003111462017122041072723");
|
|
|
}
|
|
|
isPersonal = true;
|
|
|
Map<String, String> infoMap = getUserInfoMap(isPersonal);
|
|
|
@@ -125,4 +129,19 @@ public class PingAnFacadeImpl implements PingAnFacade {
|
|
|
System.out.println(resultStr);
|
|
|
return resultStr;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 传入的数据
|
|
|
+ *
|
|
|
+ * @param json json 交易的信息
|
|
|
+ * @param isPersonal 是否是个人
|
|
|
+ * @return String
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public String khPay(JSONObject json, Boolean isPersonal) {
|
|
|
+ HashMap<String, String> map = new HashMap<>();
|
|
|
+ Map<String, String> infoMap = getUserInfoMap(isPersonal);
|
|
|
+// map.put()
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|