|
Moodle
2.2.1
http://www.collinsharper.com
|
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 |
Definition at line 37 of file authorizenet.class.php.
| static expired | ( | &$ | order | ) | [static] |
Is order expired? 'Authorized/Pending Capture' transactions are expired after 30 days.
| object | &$order | Order details. |
Definition at line 85 of file authorizenet.class.php.


| static getsettletime | ( | $ | time | ) | [static] |
Gets settlement time
| int | $time | Time processed, usually now. |
Definition at line 55 of file authorizenet.class.php.


| 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.
| object | &$order | Which transaction data will be sent. See enrol_authorize table. |
| string | &$message | Information about error message. |
| object | &$extra | Extra data that used for refunding and credit card information. |
| int | $action | Which action will be performed. See AN_ACTION_* |
| string | $cctype | Used internally to configure credit types automatically. |
Definition at line 121 of file authorizenet.class.php.


| static settled | ( | $ | order | ) | [static] |
Is order settled? Status must be auth_captured or credited.
| object | $order | Order details |
Definition at line 74 of file authorizenet.class.php.

| 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.