|
MikeHeuss.com - The eclectic repository of my life. Programming, writing, and other stuff. |
AuthNetClassI wanted a quick and dirty way to simply use the AuthorizeNet AIM interface to process payments. I didn't find a php routine readily available, So I wrote one. This script takes care of all the basics - it will generate the POST request, and parse the POST results. Below is an example of a credit card transaction:
We created an instance of AuthNet, passing in the login and transaction key. Both of these are obtained from AuthorizeNet Member Settings. You can also specify true for the debug, which proceeds to print out information useful for testing/debugging. Set a few of the required elements (see AuthorizeNet's AIM documentation), and then throw in a doTransaction. By using getReturnedValues, you get access to the values passed back from the authorizenet server. DocumentationThe full class documentation can be found here. DownloadMy disclaimer: I don't guarantee that it will work or do anything, it is provided as is. AuthNetClass.php is made available under the BSD License. Last Updated: 12 Aug 2005 |
|
© 1998 - 2008 Mike Heuss | mike@mikeheuss.com | 386 418 0075 | 6823 NW 218th Street Alachua FL 32615 |