Attached (can't attach because the attachments directory is not writable, download here instead: http://zetafleet.com/dev/opencart-0.6.5 ... ze.net.zip) is a payment module to add Authorize.net support to OpenCart 0.6.5 using AIM. OpenCart didn't really have support for back-end payment methods like AIM, so I had to add an additional controller for it (checkout_authorize).
There are three caveats:
1. the order number doesn't get sent to Authorize.net since the order isn't generated until after authorisation succeeds,
2. it can be bypassed by manually going directly from checkout_confirm to checkout_process,
3. it currently only supports credit cards (read: no eChecks).
All that said, it's tested and it works! Since it sounds like OpenCart 0.7 is substantially different and will be released pretty soon, I think that these aren't huge problems. The first two can be fixed easily by modifying some other OpenCart code, but I wanted to release something that didn't require any patching or replacement of the original source code.
[To expand on the above: It's possible to have the order number get sent to Authorize.net in OpenCart 0.6.5 by modifying checkout_authorize to INSERT a blank order before authorising (and deleting the order if authorisation is unsuccessful), and then modifying checkout_process so that it does an UPDATE instead of an INSERT using the order ID that was inserted on the previous page (eg. by setting $_SESSION['order_id']). It's possible to prevent checkout_process from getting called without going through checkout_authorize by modifying it to check for a $_SESSION variable that's only set when checkout_authorize completes successfully. I might release patchfiles later for these two problems if there's demand for them.]
Note also that this archive contains a replacement stylesheet.css containing two new blocks: .payment and .payment .error, so be sure to back up your stylesheet.css before you unzip the attached ZIP if you've made any customisations. No other existing OpenCart files were touched, so any other customisations you've made to your OpenCart will remain intact.
Enjoy! Let me know if you have any trouble.
There are three caveats:
1. the order number doesn't get sent to Authorize.net since the order isn't generated until after authorisation succeeds,
2. it can be bypassed by manually going directly from checkout_confirm to checkout_process,
3. it currently only supports credit cards (read: no eChecks).
All that said, it's tested and it works! Since it sounds like OpenCart 0.7 is substantially different and will be released pretty soon, I think that these aren't huge problems. The first two can be fixed easily by modifying some other OpenCart code, but I wanted to release something that didn't require any patching or replacement of the original source code.
[To expand on the above: It's possible to have the order number get sent to Authorize.net in OpenCart 0.6.5 by modifying checkout_authorize to INSERT a blank order before authorising (and deleting the order if authorisation is unsuccessful), and then modifying checkout_process so that it does an UPDATE instead of an INSERT using the order ID that was inserted on the previous page (eg. by setting $_SESSION['order_id']). It's possible to prevent checkout_process from getting called without going through checkout_authorize by modifying it to check for a $_SESSION variable that's only set when checkout_authorize completes successfully. I might release patchfiles later for these two problems if there's demand for them.]
Note also that this archive contains a replacement stylesheet.css containing two new blocks: .payment and .payment .error, so be sure to back up your stylesheet.css before you unzip the attached ZIP if you've made any customisations. No other existing OpenCart files were touched, so any other customisations you've made to your OpenCart will remain intact.
Enjoy! Let me know if you have any trouble.
Last edited by snover on Fri Jul 20, 2007 10:26 am, edited 1 time in total.
Attachment directory is writeable again! Sorry about that.
OpenCart®
Project Owner & Developer.
I need this for OpenCart 0.7.7 too. Anybody get this Authorize.net payment module to work with OC 0.7.7?
Ditto. Authorize.net support would be wonderful! 
OpenCart has the nicest-looking design out of the box (or out of the zip file I suppose) of any e-commerce system I've used, and is very simple to use. With Authorize.net support and a few more features, it could be one of the most popular carts available!

OpenCart has the nicest-looking design out of the box (or out of the zip file I suppose) of any e-commerce system I've used, and is very simple to use. With Authorize.net support and a few more features, it could be one of the most popular carts available!
Who is online
Users browsing this forum: No registered users and 3 guests