| Line 91... |
Line 91... |
| 91 |
gsonBuilder
|
91 |
gsonBuilder
|
| 92 |
.registerTypeAdapter(Object.class, new NaturalDeserializer());
|
92 |
.registerTypeAdapter(Object.class, new NaturalDeserializer());
|
| 93 |
Gson gson = gsonBuilder.create();
|
93 |
Gson gson = gsonBuilder.create();
|
| 94 |
Type t = new TypeToken<Map<String,Object>>() {}.getType();
|
94 |
Type t = new TypeToken<Map<String,Object>>() {}.getType();
|
| 95 |
Map<String, Object> postMap = gson.fromJson(postResponse, t);
|
95 |
Map<String, Object> postMap = gson.fromJson(postResponse, t);
|
| - |
|
96 |
log.info("postMap.get(\"status\")=======" + postMap.get("status"));
|
| 96 |
if ("0".equals(postMap.get("status"))) {
|
97 |
if ("0".equals(postMap.get("status"))) {
|
| 97 |
resultMap.put(ERR_CODE, Errors.CAPTURE_FAILURE.code);
|
98 |
resultMap.put(ERR_CODE, Errors.CAPTURE_FAILURE.code);
|
| 98 |
resultMap.put(ERROR, (String)postMap.get("msg"));
|
99 |
resultMap.put(ERROR, (String)postMap.get("msg"));
|
| 99 |
} else if ("1".equals(postMap.get("status"))){
|
100 |
} else if ("1".equals(postMap.get("status"))){
|
| - |
|
101 |
log.info("postMap.containsKey(\"bank_ref_num\")========" + postMap.containsKey("bank_ref_num"));
|
| 100 |
resultMap.put(REF_NO, (String) postMap.get("bank_ref_num"));
|
102 |
resultMap.put(REF_NO, (String) postMap.get("bank_ref_num"));
|
| 101 |
if(postMap.get("txn_update_id")!= null) {
|
103 |
if(postMap.get("txn_update_id")!= null) {
|
| 102 |
resultMap.put("txn_update_id", (String)postMap.get("txn_update_id"));
|
104 |
resultMap.put("txn_update_id", (String)postMap.get("txn_update_id"));
|
| 103 |
}
|
105 |
}
|
| 104 |
if(postMap.get("request_id")!=null){
|
106 |
if(postMap.get("request_id")!=null){
|