Sample payment conversion user exit
This sample user exit is used to convert transactions that are in the ISO 200022 format to the ISF format.
The following sections provide an overview on how to compile and configure the sample user exit.
To compile this sample user exit, you need the following files:
- UserPaymentConversionSample.java
- base_java_utilities.jar
Getting the user exit files from the container
Complete the following steps to get the user exit files from the artifacts container.
- The files for user exits are provided in the FTM artifacts pod and must be downloaded from the pod. For more information about getting files from the artifacts container for your offering, see Getting the files from the artifacts container for your FTM offering.
- Extract the user exit files on a workstation that has the Java™ compiler.
Compiling
To compile the user exit, complete the following steps.
Note: The following example of compiling the user
exit must be customized based on the Java class name, Java package name, and location of the dependency JAR files that you are
using.
- The
UserPaymentConversionSampleclass is in thecom.ibm.fxh.user.payment.conversion.samplesJava package, so create the following directory structure: C:\com\ibm\fxh\user\payment\conversion\samples. - Copy the following files into the C:\com\ibm\fxh\user\payment\conversion\samples directory.
- UserPaymentConversionSample.java
- base_java_utilities.jar
- Compile the Java class by using the following commands. Use the IBM®
Java 17 SDK to
compile.
cd C:\com\ibm\fxh\user\payment\conversion\samples javac UserPaymentConversionSample.java -classpath base_java_utilities.jar
Packaging
After the code is compiled, package the class file into a JAR file that is used to deploy into the Transaction Server user interface runtime.
The following example of creating a JAR file must be customized based on your selected file
names.
cd \
jar cvf C:\com\ibm\fxh\user\payment\conversion\samples\UserPaymentConversionSample.jar com\ibm\fxh\user\payment\conversion\samples\UserPaymentConversionSample.classInstalling
For more information about installing this user exit, see User exits for the FTM components.
Configuring
To use the user exit, configure it in the user interface.
- Browse to the Transaction Server general properties page.
- Click Edit.
- Enter the value
com.ibm.fxh.user.payment.conversion.samples.UserPaymentConversionSamplefor the ISO20022 to ISF User Exit property. - Save your changes and restart the Control Center.