views:

580

answers:

4

Are there any good libraries or wrappers for Authorize.net? The code samples available from their site seem a little ... raw. I'm looking for an easy to use, object oriented API that I can simply set some properties, and it takes care of all the plumbing code under the hood.

I've found a few random blog posts of people offering their code that they've written, but code offered in a blog post doesn't give a high degree of confidence generally that it's been well tested. I mean, we'll consider these if we have to, but we'd prefer something that looks like it's gone through some sort of release/testing cycle ... even if it's just that it has been posted on codeplex or something.

Thanks! :-)

+1  A: 

See my answer here, it should help you out. In my answer, I point to a blog post as a reference. You may need to view the revisions to see my whole answer, though. For some reason it is getting cut off for me. Check out the Gateway Provider Implementations section of the blog post. It should help you out and get you going on implementing your own code for talking to the Authorize.Net API. I've used a similar implementation and it has worked well for me.

Dale Ragan
+2  A: 

A little late answering, but perhaps this?

http://code.google.com/p/payment-processor/

Steve
Worked great for me.
JasonRShaver
+2  A: 

I use SharpAuthorize.com on a few eCommerce sites. One of which makes around $10K / month...

MinimumCreditCard authNet = new MinimumCreditCard()
    .Login("testdrive")
    .Password("password")
    .TransType(TransType.AUTH_CAPTURE)
    .CardNum(_cardNumField.Text)
    .ExpDate(_cardExpField.Text)
    .CardCode(_cardCodeField.Text)
    .Amount(8.00);

if (authNet.Authorize())
{
    // Money in your pocket!
}

It is noted on the site, but you should use a transaction id instead of the username and password in real code.

consultutah