Reference Guide

Adobe Acrobat PDF Lampshade 1.2 Reference (PDF)

authorizenet.inc.php - Authorize.Net Functions

processCreditCard

Required Parameters: string $type, string $login, string $password, string $amount
Optional Parameters: array $billTo, array $shipTo, array $other, string $currency, int $transactionID, bool $batch
Returns: int
Description: This function contacts the Authorize.Net server to verify the client's credit card information according to the Authorize.Net AIM API 1.0. The $aim array contains all of the necessary information for submission, including Authorize.Net field names. The HTTP POST request is implemented over SSL using cURL on port 443. The variable $type is a string that should meet the Authorize.Net specifications for the x_Type field, with the following choices: AUTH_CAPTURE, AUTH_ONLY, CAPTURE_ONLY, CREDIT, VOID, PRIOR_AUTH_CAPTURE. (See the Authorize.Net AIM Implementation Guide for more details.) The function does not allow the user to process more that one transaction sequentially unless $batch is TRUE, which is not the case by default. This behavior is designed to prevent double-charging if and when the user presses the web browser's "reload" button.

function processCreditCard($type, $login, $password, $amount, $billTo = '', $shipTo = '', $other = '', $currency = "USD", $transactionID = '', $batch = FALSE)

Copyright © 2001-2010 Think Computer Corporation. All Rights Reserved. Patent pending.

Authors of the impossible.™
Think