need a help

53 views
Skip to first unread message

El Aydi El Agal

unread,
May 17, 2021, 9:07:33 AM5/17/21
to jPOS Users
hi friend
 I am new in jpos and iso8583
I work with I project the idea of it is to create an application to generate and packing msg dynamic 
and I try from this text file   to  generate customer packager xml  with java language 
and pack the msg with jpos
but I have problems
1- I dont know if this methods is corrrect or no
2- I have problems with sublied and tags I dont know how to implemente 
3- if you have any suggest I will be happy for your help
==========================purchase.txt=================================
ID Name Format Prefix Data Comment
2021-02-17T20:33:35.664 0000: Received by [SPAN EFTPOS (6.0.3 2017-04), 'ITS'] Authorization Request Response, MTI [1804], DE011 [100158]
  Raw data
    346 (0x15A) bytes: 31 38 30 34 30 32 33 30 30 31 30 30 30 30 30 31 30 30 30 34 30 32 31 38 30 33 30 37 35 36 31 30 30 31 35 38 31 38 30 32 31 38 30 36 30 37 35 36 38 31 34 31 37 33 18 09 36 28 15 01 01 00 00 10 B8 9C CB 0D 7C 16 9D 2E B1 BA 1C A6 8D 3A 44 3B 00 00 90 8B 35 EF 9A A4 29 71 D9 04 BF 87 58 94 7B AD 37 00 DE A2 55 8A 9E 07 82 5A 26 4E 31 CC 6B EC 60 92 44 40 A6 FD 88 88 64 B6 EA F6 1A FA D1 C2 92 7F FE E6 0A BA 9B 75 0D 22 F4 4D 24 D5 8D 48 36 CE 99 34 71 92 84 E6 46 09 B9 A8 E6 49 DA 04 5D F5 25 4B 8D 6E 3E 61 9A 9C B7 FC 9B 73 F0 26 B4 24 2A 67 1F C8 C4 82 E9 AE AF 3A 08 44 1B B0 23 8A BD BB 7F 50 5A F0 EC 9B DF 92 ED 39 39 94 C9 02 59 79 71 DC 40 B0 47 49 A0 56 C3 6C 0E 9C B7 31 31 36 30 31 31 30 32 32 30 33 30 30 30 30 33 30 30 34 30 30 35 30 30 37 4E 34 30 32 36 34 36 57 30 37 39 35 38 35 36 30 39 30 31 30 30 30 30 30 30 30 30 30 30 31 31 30 30 30 30 30 30 30 30 30 31 32 30 30 30 30 30 30 30 30 30 31 33 30 30 30 30 30 30 30 30 30 31 34 30 30 30 30 30 30 30 30 30 30 30 30 31 35 30 36 30 30 30 35 31 36 30 32 30 31 30 31 30 36
  MTI MTI N4 1804 [1804] Network management request
  BM1 Primary bitmap AN16 0230010000010004  
  DE007 Transmission date+time N10 0218030756 and time of [2021-02-18 03:07:56]
  DE011 STAN N6 100158 Date
  DE012 Local transaction date+time N12 180218060756 Date and time of [2018-02-18 06:07:56]
  DE024 Function code N3 814 [814] Device authentication (terminal registration)
  DE048 Private additional data B...999 173 18 09 36 28 15 01 01 00 00 10 B8 9C CB 0D 7C 16 9D 2E B1 BA 1C A6 8D 3A 44 3B 00 00 90 8B 35 EF 9A A4 29 71 D9 04 BF 87 58 94 7B AD 37 00 DE A2 55 8A 9E 07 82 5A 26 4E 31 CC 6B EC 60 92 44 40 A6 FD 88 88 64 B6 EA F6 1A FA D1 C2 92 7F FE E6 0A BA 9B 75 0D 22 F4 4D 24 D5 8D 48 36 CE 99 34 71 92 84 E6 46 09 B9 A8 E6 49 DA 04 5D F5 25 4B 8D 6E 3E 61 9A 9C B7 FC 9B 73 F0 26 B4 24 2A 67 1F C8 C4 82 E9 AE AF 3A 08 44 1B B0 23 8A BD BB 7F 50 5A F0 EC 9B DF 92 ED 39 39 94 C9 02 59 79 71 DC 40 B0 47 49 A0 56 C3 6C 0E 9C B7  
    S01 Vendor ID B1 18  
    S02 Terminal type B1 09  
    S03 Terminal ID B3 36 28 15  
    S04 Vendor key index B1 01  
    S05 SAMA key index B1 01  
    S06 Random string B..F3:128 00 00 10 B8 9C CB 0D 7C 16 9D 2E B1 BA 1C A6 8D 3A 44 3B  
    S07 Vendor signature B..F3:128 00 00 90 8B 35 EF 9A A4 29 71 D9 04 BF 87 58 94 7B AD 37 00 DE A2 55 8A 9E 07 82 5A 26 4E 31 CC 6B EC 60 92 44 40 A6 FD 88 88 64 B6 EA F6 1A FA D1 C2 92 7F FE E6 0A BA 9B 75 0D 22 F4 4D 24 D5 8D 48 36 CE 99 34 71 92 84 E6 46 09 B9 A8 E6 49 DA 04 5D F5 25 4B 8D 6E 3E 61 9A 9C B7 FC 9B 73 F0 26 B4 24 2A 67 1F C8 C4 82 E9 AE AF 3A 08 44 1B B0 23 8A BD BB 7F 50 5A F0 EC 9B DF 92 ED 39 39 94 C9 02 59 79 71 DC 40 B0 47 49 A0 56 C3 6C 0E 9C B7  
  DE062 Private - terminal status ANS...999 116 0110220300003004005007N402646W07958560901000000000011000000000120000000001300000000014000000000000150600051602010106  
    Tag01 Terminal Dial Indicator AN1 1  
    Tag02 Printer Status AN1 2 [2] Plain paper receipt
    Tag03 Idle time N6 000030 Time of [00:00:30]
    Tag04 Mag reader status AN1 0 [0] OK
    Tag05 Chip card reader status AN1 0 [0] OK
    Tag07 GPS Coordinates AN15 N402646W0795856  
    Tag09 Contactless Reader Status AN1 0 [0] OK
    Tag10 Connection Start Time N9 000000000  
    Tag11 Connection End Time N9 000000000  
    Tag12 Request Send Time N9 000000000  
    Tag13 Response Received Time N9 000000000  
    Tag14 Performance Timers Reference N12 000000000000  
    Tag15 mada EFTPOS spec release version N6 060005  
    Tag16 Connection Details AN8 02010106  
================================================================

and the xml file 
===========================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE isopackager SYSTEM "genericpackager.dtd">

<isopackager>

<isofield id="0" length="4" name="MESSAGE TYPE INDICATOR"
class="org.jpos.iso.IFA_NUMERIC" />

<isofield id="1" length="16" name="BIT MAP"
class="org.jpos.iso.IFA_BITMAP" />

<isofield id="2" length="19" name="SECRET ID"
class="org.jpos.iso.IFA_LLNUM" />
..
.
.
==========================================

Arsalan Khan

unread,
Jun 25, 2021, 9:33:11 AM6/25/21
to jPOS Users
Hi,

The file you are using to read raw messages and turning them into ISO messages is basically a log trace from ASTERIX simulator by Acquirer Systems (later acquired by UL) if I am not wrong. And you are basically looking at SPAN (now known as Mada) payment scheme messages. 

When we work with a payment network usually during a certification phase, we receive the specifications from them which is very important to understand how the scheme works, message format, private/national fields, supported message types etc and so on.

But if I were in your place I could reverse engineer some level of payment scheme specifications from the available TCP hex dump + the parsed log trace easily and build the XML packager. 

Reply all
Reply to author
Forward
0 new messages