Page 1 of 1

Plaintext output

Posted: Fri Apr 13, 2012 1:13 am
by mscot
I need to convert plain text output from my payment gateway into useable variables that I can save in my database can anyone please help. Below is an example of the output I get from my gateway.

AuthNo=AVSSALE:TEST:::163034192:N::U
historyid=163034192
orderid=123231541
recurid=0
refcode=163034192-TEST
result=1
Status=Accepted
transid=0
USERPROFILEID=6235976

Re: Plaintext output

Posted: Fri Apr 13, 2012 5:25 pm
by munky
[moved to Off Topic]

you didn't say what language you need to do this in. assuming PHP, a simple solution might be to use parse_ini_string()