String resp = "."; try { resp = oldUnionService.socialSecPay(socialSecPayRequest); } catch (Exception e) { log.error("Error: " + e); // 银联返回的业务报错 if (e instanceof AthenaRuntimeException && e.getMessage().startsWith("Union Return")) { state = UPSConst.SocialOrderState.F; modifySocialPayOrder.setState(state); event.setData(UPSDict.TransSt, state); orderDao.modifySocialPayOrder(modifySocialPayOrder); throw new AthenaRuntimeException(e.getMessage()); } }

Map<String, Object> map; try { map = mapper.json2map(resp); } catch (IOException e) { log.error("Error: " + e); throw new AthenaRuntimeException(UPSMsg.ATP_CHECK_SOCIAL_RESP); }

String queryId = MapUtils.getString(map, UPSDict.queryId); String transAt = MapUtils.getString(map, UPSDict.transAt); // 交易金额 String txnTs = MapUtils.getString(map, UPSDict.txnTs); // 交易时间 yyyyMMddHHmmss String transSt = MapUtils.getString(map, UPSDict.transSt); // 交易状态

银联社会保障支付接口调用及结果解析

原文地址: https://www.cveoy.top/t/topic/ptiZ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录