ISO 8583 包装 120 字段
ISO 8583 packing 120 feild
我想设置120的子字段,谁能指导一下?
目前我正在使用 JPOS 库来打包数据,下面是示例打包消息。
request.setPackager(packager);
request.setMTI(Constants.MTI.FINANCIAL_RESPONSE.getValue());
request.set(new ISOField(2, unpackedMsg.getString(2)));
request.set(new ISOField(3, "000062"));
request.set(new ISOField(4, unpackedMsg.getString(4)));
request.set(new ISOField(7, unpackedMsg.getString(7)));
request.set(new ISOField(11, unpackedMsg.getString(11)));
request.set(new ISOField(12, unpackedMsg.getString(12)));
request.set(new ISOField(13, unpackedMsg.getString(13)));
request.set(new ISOField(15, unpackedMsg.getString(15)));
request.set(new ISOField(18, unpackedMsg.getString(18)));
request.set(new ISOField(22, unpackedMsg.getString(22)));
request.set(new ISOField(24, unpackedMsg.getString(24)));
request.set(new ISOField(32, unpackedMsg.getString(32)));
request.set(new ISOField(33, unpackedMsg.getString(33)));
request.set(new ISOField(37, unpackedMsg.getString(37)));
request.set(new ISOField(38, Constants.getRandomNumberString()));
request.set(new ISOField(39, Constants.SUCCESS_RESPONSE));
request.set(new ISOField(41, unpackedMsg.getString(41)));
request.set(new ISOField(43, unpackedMsg.getString(43)));
request.set(new ISOField(49, unpackedMsg.getString(49)));
request.set(new ISOField(103, unpackedMsg.getString(103)));
request.set(new ISOField(120, sb.toString()));
想在120的子字段下添加数据
120 feild values should be as mentioned in the screenshot
问题出在 MLI 上,当我发送给第 3 方时长度不合适。
我想设置120的子字段,谁能指导一下?
目前我正在使用 JPOS 库来打包数据,下面是示例打包消息。
request.setPackager(packager);
request.setMTI(Constants.MTI.FINANCIAL_RESPONSE.getValue());
request.set(new ISOField(2, unpackedMsg.getString(2)));
request.set(new ISOField(3, "000062"));
request.set(new ISOField(4, unpackedMsg.getString(4)));
request.set(new ISOField(7, unpackedMsg.getString(7)));
request.set(new ISOField(11, unpackedMsg.getString(11)));
request.set(new ISOField(12, unpackedMsg.getString(12)));
request.set(new ISOField(13, unpackedMsg.getString(13)));
request.set(new ISOField(15, unpackedMsg.getString(15)));
request.set(new ISOField(18, unpackedMsg.getString(18)));
request.set(new ISOField(22, unpackedMsg.getString(22)));
request.set(new ISOField(24, unpackedMsg.getString(24)));
request.set(new ISOField(32, unpackedMsg.getString(32)));
request.set(new ISOField(33, unpackedMsg.getString(33)));
request.set(new ISOField(37, unpackedMsg.getString(37)));
request.set(new ISOField(38, Constants.getRandomNumberString()));
request.set(new ISOField(39, Constants.SUCCESS_RESPONSE));
request.set(new ISOField(41, unpackedMsg.getString(41)));
request.set(new ISOField(43, unpackedMsg.getString(43)));
request.set(new ISOField(49, unpackedMsg.getString(49)));
request.set(new ISOField(103, unpackedMsg.getString(103)));
request.set(new ISOField(120, sb.toString()));
想在120的子字段下添加数据
120 feild values should be as mentioned in the screenshot
问题出在 MLI 上,当我发送给第 3 方时长度不合适。