Plaintext output

Post everything else here

Moderators: Website/Forum Admins, Other/Off Topic Moderators

mscot
Posts: 1
Joined: Fri Apr 13, 2012 1:06 am

Plaintext output

Postby mscot » Fri Apr 13, 2012 1:13 am

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
User avatar
munky
Site Admin
Posts: 826
Joined: Wed Jul 02, 2003 4:54 pm
Location: Phoenix AZ
Contact:

Re: Plaintext output

Postby munky » Fri Apr 13, 2012 5:25 pm

[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()
In God we trust,
Everyone else must have an X.509 certificate.

Return to “Off Topic”

Who is online

Users browsing this forum: No registered users and 2 guests