Simplified, minimal PHP for Authorize.net AIM transaction
Posted on 2006-07-12
Authorize.Net does NOT (nor it seems does anyone else) post a BASIC, SIMPLE script for their AIM transaction interface (advanced = just send transaction for approval). What they provide is an overly complex HTML output script to provide everything imaginable and parse all results returned.
ALL I WANT IS THE BARE MINIMUM to send a transaction, and find out only if it was approved or not.
PLEASE, NO LINKS !! I have read them all, they are too complex, no one has stripped it to the basics.
Please reply ONLY if you can strip their code to the BARE ESSENTIALS, nothing more.
This is what the Authorize.net REP said when I asked him as to the bare essentials --
"All you need to submit for authentication is the API login ID and transaction key. The only transaction values that need to be posted in order to process are the card number, expiration date and amount. All the other variables listed in the implementation guide are optional."
Keep that in mind when you reply -- 90% of what they provide is superfluous. I have already stripped out over 100 lines of junk before posting this script -- the remaining HTML fragments also need to go -- I am outputting NOTHING at all to the screen, all I want is the YES/NO result.
I would appreciate someone helping me strip all the baggage out of this script, and be left with only 10-20 essential lines, that is all. I can handle the rest in PHP.