Moodle  2.2.1
http://www.collinsharper.com
AuthorizeNet Class Reference

Static Public Member Functions

static getsettletime ($time)
static settled ($order)
static expired (&$order)
static process (&$order, &$message, &$extra, $action=AN_ACTION_NONE, $cctype=NULL)

Data Fields

const AN_DELIM = '|'
const AN_ENCAP = '"'
const AN_REASON_NOCCTYPE = 17
const AN_REASON_NOCCTYPE2 = 28
const AN_REASON_NOACH = 18
const AN_REASON_ACHONLY = 56
const AN_REASON_NOACHTYPE = 245
const AN_REASON_NOACHTYPE2 = 246

Detailed Description

Definition at line 37 of file authorizenet.class.php.


Member Function Documentation

static expired ( &$  order) [static]

Is order expired? 'Authorized/Pending Capture' transactions are expired after 30 days.

Parameters:
object&$orderOrder details.
Returns:
bool true, transaction is expired, false otherwise.

Definition at line 85 of file authorizenet.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static getsettletime ( time) [static]

Gets settlement time

Parameters:
int$timeTime processed, usually now.
Returns:
int Settlement time

Definition at line 55 of file authorizenet.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static process ( &$  order,
&$  message,
&$  extra,
action = AN_ACTION_NONE,
cctype = NULL 
) [static]

Performs an action on authorize.net and updates/inserts records. If record update fails, sends email to admin.

Parameters:
object&$orderWhich transaction data will be sent. See enrol_authorize table.
string&$messageInformation about error message.
object&$extraExtra data that used for refunding and credit card information.
int$actionWhich action will be performed. See AN_ACTION_*
string$cctypeUsed internally to configure credit types automatically.
Returns:
int AN_APPROVED Transaction was successful, AN_RETURNZERO otherwise. Use $message for reason.

Definition at line 121 of file authorizenet.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static settled ( order) [static]

Is order settled? Status must be auth_captured or credited.

Parameters:
object$orderOrder details
Returns:
bool true, if settled, false otherwise.

Definition at line 74 of file authorizenet.class.php.

Here is the caller graph for this function:


Field Documentation

const AN_DELIM = '|'

Definition at line 39 of file authorizenet.class.php.

const AN_ENCAP = '"'

Definition at line 40 of file authorizenet.class.php.

const AN_REASON_ACHONLY = 56

Definition at line 45 of file authorizenet.class.php.

const AN_REASON_NOACH = 18

Definition at line 44 of file authorizenet.class.php.

const AN_REASON_NOACHTYPE = 245

Definition at line 46 of file authorizenet.class.php.

const AN_REASON_NOACHTYPE2 = 246

Definition at line 47 of file authorizenet.class.php.

const AN_REASON_NOCCTYPE = 17

Definition at line 42 of file authorizenet.class.php.

const AN_REASON_NOCCTYPE2 = 28

Definition at line 43 of file authorizenet.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations