[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/enrol/authorize/ -> authorizenetlib.php (summary)

(no description)

File Size: 434 lines (16 kb)
Included or required: 3 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  authorize_getsettletime()
  authorize_settled()
  authorize_expired()
  authorize_action()

Functions
Functions that are not part of a class:

authorize_getsettletime($time)   X-Ref
Gets settlement date and time

param: int $time Time processed, usually now.
return: int Settlement date and time

authorize_settled($order)   X-Ref
Is order settled? Status must be auth_captured or credited.

param: object $order Order details
return: bool true, if settled, false otherwise.

authorize_expired(&$order)   X-Ref
Is order expired? 'Authorized/Pending Capture' transactions are expired after 30 days.

param: object &$order Order details.
return: bool true, transaction is expired, false otherwise.

authorize_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE, $cctype=NULL)   X-Ref
Performs an action on authorize.net and updates/inserts records. If record update fails,
sends email to admin.

author: Ethem Evlice <ethem a.t evlice d.o.t com>
param: object &$order Which transaction data will be sent. See enrol_authorize table.
param: string &$message Information about error message.
param: object &$extra Extra data that used for refunding and credit card information.
param: int $action Which action will be performed. See AN_ACTION_*
param: string $cctype Used internally to configure credit types automatically.
return: int AN_APPROVED Transaction was successful, AN_RETURNZERO otherwise. Use $message for reason.



Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7