News for hackers. Stuff that matters.
Re:How not to get acquired by tzs on Thursday June 21, 2012 @03:45PM (#4143854)
Where is there XML in Authorize.Net's API? Here's how you charge a card using the AIM (Advanced Integration Method) interface (Perl sample code):

    my $post_values	= 
    {
        "x_login"			=> "API_LOGIN_ID",
        "x_tran_key"		=> "TRANSACTION_KEY",
        "x_version"			=> "3.1",
        "x_delim_data"		=> "TRUE",
        "x_delim_char"		=> "|",
        "x_relay_response"	=> "FALSE",
        "x_type"			=> "AUTH_CAPTURE",
        "x_method"			=> "CC",
        "x_card_num"		=> "4111111111111111",
        "x_exp_date"		=> "0115",
        "x_amount"			=> "19.99",
        "x_description"		=> "Sample Transaction",
        "x_first_name"		=> "John",
        "x_last_name"		=> "Doe",
        "x_address"			=> "1234 Street",
        "x_state"			=> "WA",
        "x_zip"				=> "98004"	
    };
    my $useragent	= LWP::UserAgent->new( protocols_allowed => ["https"] );
    my $request		= POST( $post_url, $post_values );
    my $response	= $useragent->request( $request );
That's just a straightforward form post to a CGI. Result is a line of CSV data. No XML in sight.

Does the non-AIM option (I forget what it is called) use XML?

Re:How not to get acquired by polyfractal on Thursday June 21, 2012 @04:29PM (#4144035)
I don't have the code handy (was client work for a third party), but we definitely used XML through Auth.net's AIM. Here are the API docs for it:

http://www.authorize.net/support/AIM_guide_XML.pdf

We also used XML through their CIM to manage customer profiles. To be fair, this was all in PHP, and the code was inherited so I'm not sure if there was a better way to deal with Auth.net's API.

I do know that their dashboards were thoroughly unpleasant to deal with and I felt the API was obtuse in many different locations.

Re:How not to get acquired by tzs on Thursday June 21, 2012 @04:43PM (#4144089)
Interesting. Here's the non-XML AIM guide: http://www.authorize.net/support/AIM_guide.pdf

That's the one we use. I didn't even know they had an XML option--and now I'm going to try to forget it! :-)

Re:How not to get acquired by polyfractal on Thursday June 21, 2012 @06:30PM (#4144501)
Interesting! I had no idea they had a non-XML option. If I was still working on the project, I'd totally push for that.

Good to know for future projects =)

Re:How not to get acquired by jauer on Thursday June 21, 2012 @05:15PM (#4144225)
Business::OnlinePayment is one of those standup CPAN libraries that may not be well known but solves real(world) problems. I'm using it in a line of business app at work and when we ditched authorize.net I migrated to ippay by changing a couple lines of code.
Re:How not to get acquired by snorkel on Thursday June 21, 2012 @04:50PM (#4144118)
I think the perl lib formats and sends this as XML, and perhaps dropping down to XML is required if the language lib isn't up to date.
Re:How not to get acquired by mike-cardwell on Thursday June 21, 2012 @05:14PM (#4144222)
No it doesn't