Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Dps_Processor Class Reference

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 ()
 

Detailed Description

Definition at line 31 of file dps_processor.inc.

Constructor & Destructor Documentation

__construct (   $client,
  $password,
  $test_mode = TRUE 
)

Constructor

Parameters
string$clientID of the DPS account
string$passwordpassword of the DPS account
string$datacash_api_paththe path to the DPS PHP API's DataCash.php file
string$cardinfo_dir_paththe path to the directory that holds the DPS CardInfo files
int$timeoutthe time to wait for a response from DPS Payment Gateway
boolean$test_modespecify if this processor is in live or test mode; default is test mode

Definition at line 187 of file dps_processor.inc.

Member Function Documentation

getResponse ( )

Returns the gateway response array in standard format

This should be the format other gateways use to return their response

public

Returns
array

Definition at line 378 of file dps_processor.inc.

static getTestCardNumbers ( )
static

Get the list of the magic test card numbers

Returns
array public

Definition at line 501 of file dps_processor.inc.

process ( )

Process the transaction

Returns
mixed return FALSE if the card is not valid or transaction fails, return 1 if SUCCESS public

Definition at line 392 of file dps_processor.inc.

setAmount (   $amount)

Set amount of transaction

Parameters
string$amountthe amount of the transaction
Returns
void public

Definition at line 334 of file dps_processor.inc.

setCardCV2 (   $cv2)

Set card CV2

Parameters
string$cv2the card CV2
Returns
void public

Definition at line 284 of file dps_processor.inc.

setCardExpiryDate (   $month,
  $year 
)

Set expiry date

Parameters
string$monththe expiry month
string$yearthe expiry year
Returns
void public

Definition at line 239 of file dps_processor.inc.

setCardIssueNumber (   $issue_no)

Set card issue number

Parameters
string$issue_nothe card issue number
Returns
void public

Definition at line 269 of file dps_processor.inc.

setCardName (   $name)

Set card holder name

Parameters
string$namethe card holder name
Returns
void public

Definition at line 223 of file dps_processor.inc.

setCardNumber (   $card_no)

Set card number

Parameters
string$card_nothe card number
Returns
void public

Definition at line 208 of file dps_processor.inc.

setCardStartDate (   $month,
  $year 
)

Set start date

Parameters
string$monththe start month
string$yearthe start year
Returns
void public

Definition at line 254 of file dps_processor.inc.

setCurrency (   $currency)

Set currency of transaction

Parameters
string$currencythe currency of the amount
Returns
void public

Definition at line 348 of file dps_processor.inc.

setPostcode (   $postcode)

Set Postcode

Parameters
string$postcodethe postcode of the address
Returns
void public

Definition at line 315 of file dps_processor.inc.

setStandardPolicy (   $policy)

Set Standard Policy

Parameters
string$policythe policy value (0, 1, 2) for standard policy
Returns
void public

Definition at line 363 of file dps_processor.inc.

setStreetAddress (   $address)

Set Street Address

Parameters
int$numberthe order of line of the address
string$addressthe $number-th line of the address
Returns
void public

Definition at line 300 of file dps_processor.inc.


The documentation for this class was generated from the following file: