Squiz Matrix
4.12.2
|
Public Member Functions | |
__construct ($client, $password, $datacash_api_path, $cardinfo_dir_path, $timeout=60, $test_mode=TRUE) | |
setCardNumber ($card_no) | |
setCardExpiryDate ($month, $year) | |
setCardStartDate ($month, $year) | |
setCardIssueNumber ($issue_no) | |
setCardCV2 ($cv2) | |
setStreetAddress ($number, $address) | |
setPostcode ($postcode) | |
setTransactionTypeAuth () | |
setMerchantReference ($merchant_ref) | |
setAmount ($amount, $currency) | |
setThreeDSecureParams ($merchant_url, $purchase_desc, $purchase_time, $extra_nonthreed_card_types) | |
setThreeDSecure () | |
setStandardPolicy ($policy) | |
setAuthorization ($reference, $pares=NULL, $method= 'threedsecure_authorization_request') | |
process () | |
authorize ($datacash_ref, $pares=NULL) | |
getResponse () | |
getMerchantReference () | |
Static Public Member Functions | |
static | getTestCardNumbers () |
Definition at line 31 of file datacash_processor.inc.
__construct | ( | $client, | |
$password, | |||
$datacash_api_path, | |||
$cardinfo_dir_path, | |||
$timeout = 60 , |
|||
$test_mode = TRUE |
|||
) |
Constructor
string | $client | ID of the Datacash account |
string | $password | password of the Datacash account |
string | $datacash_api_path | the path to the Datacash PHP API's DataCash.php file |
string | $cardinfo_dir_path | the path to the directory that holds the Datacash CardInfo files |
int | $timeout | the time to wait for a response from Datacash Payment Gateway |
boolean | $test_mode | specify if this processor is in live or test mode; default is test mode |
Definition at line 184 of file datacash_processor.inc.
authorize | ( | $datacash_ref, | |
$pares = NULL |
|||
) |
Authorize a 3-D Secure transaction
string | $datacash_ref | the Datacash reference number |
string | $pares | the Payment Authentication Response (PARes) returned by the Access Control Server (ACS) |
Definition at line 565 of file datacash_processor.inc.
getMerchantReference | ( | ) |
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 622 of file datacash_processor.inc.
|
static |
Get the list of the magic test card numbers
Definition at line 664 of file datacash_processor.inc.
process | ( | ) |
Process the transaction
Definition at line 496 of file datacash_processor.inc.
setAmount | ( | $amount, | |
$currency | |||
) |
Set amount of transaction
string | $amount | the amount of the transaction |
string | $currency | the currency of the amount |
Definition at line 401 of file datacash_processor.inc.
setAuthorization | ( | $reference, | |
$pares = NULL , |
|||
$method = 'threedsecure_authorization_request' |
|||
) |
Set Parameters for Authorization transaction
string | $reference | the Datacash reference number |
string | $pares | the Payment Authentication Response (PARes) returned by the Access Control Server (ACS) |
int | $method | the transaction type that can be threedsecure_authorization_request, threedsecure_authorize_referral_request or fulfill |
Definition at line 479 of file datacash_processor.inc.
setCardCV2 | ( | $cv2 | ) |
Set card CV2
string | $cv2 | the card CV2 |
Definition at line 326 of file datacash_processor.inc.
setCardExpiryDate | ( | $month, | |
$year | |||
) |
Set expiry date
string | $month | the expiry month |
string | $year | the expiry year |
Definition at line 280 of file datacash_processor.inc.
setCardIssueNumber | ( | $issue_no | ) |
Set card issue number
string | $issue_no | the card issue number |
Definition at line 311 of file datacash_processor.inc.
setCardNumber | ( | $card_no | ) |
Set card number
string | $card_no | the card number |
Definition at line 264 of file datacash_processor.inc.
setCardStartDate | ( | $month, | |
$year | |||
) |
Set start date
string | $month | the start month |
string | $year | the start year |
Definition at line 296 of file datacash_processor.inc.
setMerchantReference | ( | $merchant_ref | ) |
Set merchant reference
string | $merchant_ref | the merchant reference number |
Definition at line 385 of file datacash_processor.inc.
setPostcode | ( | $postcode | ) |
Set Postcode
string | $postcode | the postcode of the address |
Definition at line 357 of file datacash_processor.inc.
setStandardPolicy | ( | $policy | ) |
Set Standard Policy
string | $policy | the policy value (1, 2, 3, 5, 6, 7) for standard policy |
Definition at line 462 of file datacash_processor.inc.
setStreetAddress | ( | $number, | |
$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 342 of file datacash_processor.inc.
setThreeDSecure | ( | ) |
Set 3-D Secure for the transaction
Definition at line 439 of file datacash_processor.inc.
setThreeDSecureParams | ( | $merchant_url, | |
$purchase_desc, | |||
$purchase_time, | |||
$extra_nonthreed_card_types | |||
) |
Set 3-D Secure Parameters
string | $merchant_url | the URL of the website on which the payment is made |
string | $purchase_desc | the short description of what has been purchased |
int | $purchase_time | the Unix timestamp of the transaction |
array | $extra_nonthreed_card_types | the list of card types that do not need to go through 3-D Secure check in addition to the list $this->_nonthreed_card_types |
Definition at line 419 of file datacash_processor.inc.
setTransactionTypeAuth | ( | ) |
Set transaction type to "auth"
Definition at line 370 of file datacash_processor.inc.