org.bitbucket.openisoj.Test Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openisoj-core Show documentation
Show all versions of openisoj-core Show documentation
An extensible framework for creating ISO 8583 messages.
Ported from OpenIso.Net http://code.google.com/p/openiso8583net/
package org.bitbucket.openisoj;
import org.bitbucket.openisoj.exceptions.UnknownFieldException;
public class Test {
public static void main(String[] args) throws UnknownFieldException {
Iso8583 msg = new Iso8583();
msg.setMsgType(Iso8583.MsgType._0200_TRAN_REQ);
msg.setFieldValue(Iso8583.Bit._002_PAN, "8564735641235874");
msg.setTransactionAmount(6756);
msg.setFieldValue(Iso8583.Bit._011_SYS_TRACE_AUDIT_NUM, "123456");
System.out.println(msg);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy