Warning: This repo is no longer being mantianed. Use at your own risk.
A quick way to add Authorize.NET AIM integration with just 3 lines of code.
Requires Philip Sturgeon's cURL lib (included).
- Copy the /config/authorize_net.php file into your application's config/ folder and make sure to change the values!
- Copy /libraries/Authorize_net.php and /libraries/Curl.php into your application's libraries/ folder.
You can do an authorize and capture on a card in just three lines from your controller:
$this->load->library('authorize_net');
$this->authorize_net->setData($credit_card_data);
$this->authorize_net->authorizeAndCapture();
For a full example with more values and error handling, check out /controllers/example.php
Enjoy! SammyK