Clearing File Generation and Reading with the ISO8583 Simulator

May 8, 2025 2 min read 13,175 views
Clearing File Generation and Reading with the ISO8583 Simulator

Clearing File Generation and Reading with the ISO8583 Simulator

The ISO8583 Card Payments simulator comes out of the box with clearing file generation, automatically, from the online ISO8583 transactions that it simulates.

By default, a clearing format is pre-defined, as well as an ISO8583 message.

Assuming that running online ISO8583 transactions is already working, the scope of this tutorial is how to create clearing files.

 

Step 0 

Check that clearing is enabled

Go to script_clearing.js and make sure 

clearing_enabled=true

 

Step 1

Open Clearing File and write clearing file header

Scroll down in your list of test cases for a test case that resembles "Open Clearing File and write clearing file header"

Execute it.

You should see a new clearing file created under folder "clearing", with the correct date and time, automatically.

The file header should aready be written in the file.

 

Step 2

Execure transactions as you want them to appear in the clearing file.

 

Step 3

Close Clearing File and write clearing file trailer

Scroll down in your list of test cases for a test case that resembles "Close Clearing File and write clearing file traile"

Execute it. 

You should the clearing file updated automatically.

The file trailer should aready be written in the file.

 

If you want to write another clearing file, you need to Open one again.

if you want to execute a clearing scenario, then Design a scenario that starts with "Open" test case, followed by the transactions that you want, and then the "Close" transaction at the end.

 

 

Tags:
ISO8583 card transaction clearing payments ipm ctf
  Related

Recent Articles on Ctf