PDA

View Full Version : How to parse ISO 8583 using PHP ?


syauqie
01-13-03, 22:07
Hi all,

Is there any of you ever tried to make a parser for ISO 8583 data format ? Or d'you know any links which tells such things?

Million thanks,

Syauqie

gannet
01-14-03, 07:48
The following sites may help:
http://www.jpos.org/
http://www.a2zss.com/products/ISO8583.jsp

The ISO standards can be found here:
http://www.iso.org/iso/en/CatalogueListPage.CatalogueList?ICS1=35&ICS2=240&ICS3=15

A detailed spec can also be downloaded from here:
http://www.trustedsecurity.com/Docs/Desc_ISO8583_v.1.4.PDF

Hope this all helps.

syauqie
01-14-03, 21:27
Hey.. great help! Thanks a lot..

Oyeah, some of you were send me an email, asking about this ISO 8583 parsing stuff was all about.

I'l try to make an explanation.

I'm currently developing an application (using PHP), for banking transaction and data interchange.

First, I'm sending the bank this line of data (this is just a short sample of ISO 8583 data format, the real one contains much more character.. DOH!!) :

0400200210106221300000

And the bank replies :

x040120021010622130000011 *

Those lines of data are containing these informations :

x = Message header
0400 = Request code
0401 = Response code
20021010 = Transaction date
6221 = Country and city code
300000 = Amount of money
11 = Success response (from bank)

Now how can I trim or split the response data from the bank (marked with * above) and show its contents to my web page? substr() is not an option, though. Is there any other methods I can use?

Please .. help.. :[..

Thanks a lot, guys!

Syauqie

Miceline
08-15-04, 01:15
I have created the whole body and used a java class with php using JPOS it was easy to solve that problem but my financial institute requires that I change the TDPU value to 1 for testing purpose now how do I do this. :confused:

Thanks,

Enrick

admin@miceline.com :cool: