|
Squiz Matrix
4.12.2
|
Public Member Functions | |
| __construct ($client, $password, $test_mode=TRUE) | |
| setCardNumber ($card_no) | |
| setCardName ($name) | |
| setCardExpiryDate ($month, $year) | |
| setCardStartDate ($month, $year) | |
| setCardIssueNumber ($issue_no) | |
| setCardCV2 ($cv2) | |
| setStreetAddress ($address) | |
| setPostcode ($postcode) | |
| setAmount ($amount) | |
| setCurrency ($currency) | |
| setStandardPolicy ($policy) | |
| getResponse () | |
| process () | |
| _parse_xml ($data) | |
Static Public Member Functions | |
| static | getTestCardNumbers () |
Definition at line 31 of file dps_processor.inc.
| __construct | ( | $client, | |
| $password, | |||
$test_mode = TRUE |
|||
| ) |
Constructor
| string | $client | ID of the DPS account |
| string | $password | password of the DPS account |
| string | $datacash_api_path | the path to the DPS PHP API's DataCash.php file |
| string | $cardinfo_dir_path | the path to the directory that holds the DPS CardInfo files |
| int | $timeout | the time to wait for a response from DPS Payment Gateway |
| boolean | $test_mode | specify if this processor is in live or test mode; default is test mode |
Definition at line 187 of file dps_processor.inc.
| getResponse | ( | ) |
Returns the gateway response array in standard format
This should be the format other gateways use to return their response
public
Definition at line 378 of file dps_processor.inc.
|
static |
Get the list of the magic test card numbers
Definition at line 501 of file dps_processor.inc.
| process | ( | ) |
Process the transaction
Definition at line 392 of file dps_processor.inc.
| setAmount | ( | $amount | ) |
Set amount of transaction
| string | $amount | the amount of the transaction |
Definition at line 334 of file dps_processor.inc.
| setCardCV2 | ( | $cv2 | ) |
Set card CV2
| string | $cv2 | the card CV2 |
Definition at line 284 of file dps_processor.inc.
| setCardExpiryDate | ( | $month, | |
| $year | |||
| ) |
Set expiry date
| string | $month | the expiry month |
| string | $year | the expiry year |
Definition at line 239 of file dps_processor.inc.
| setCardIssueNumber | ( | $issue_no | ) |
Set card issue number
| string | $issue_no | the card issue number |
Definition at line 269 of file dps_processor.inc.
| setCardName | ( | $name | ) |
Set card holder name
| string | $name | the card holder name |
Definition at line 223 of file dps_processor.inc.
| setCardNumber | ( | $card_no | ) |
Set card number
| string | $card_no | the card number |
Definition at line 208 of file dps_processor.inc.
| setCardStartDate | ( | $month, | |
| $year | |||
| ) |
Set start date
| string | $month | the start month |
| string | $year | the start year |
Definition at line 254 of file dps_processor.inc.
| setCurrency | ( | $currency | ) |
Set currency of transaction
| string | $currency | the currency of the amount |
Definition at line 348 of file dps_processor.inc.
| setPostcode | ( | $postcode | ) |
Set Postcode
| string | $postcode | the postcode of the address |
Definition at line 315 of file dps_processor.inc.
| setStandardPolicy | ( | $policy | ) |
Set Standard Policy
| string | $policy | the policy value (0, 1, 2) for standard policy |
Definition at line 363 of file dps_processor.inc.
| setStreetAddress | ( | $address | ) |
Set Street Address
| int | $number | the order of line of the address |
| string | $address | the $number-th line of the address |
Definition at line 300 of file dps_processor.inc.