Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Esec_Processor Class Reference
Inheritance diagram for Esec_Processor:
Esec_Processor_Integration_Interface Esec_Processor_SSL_Interface

Public Member Functions

 Esec_Processor ()
 
 set ($name, $value)
 
 setArray ($name, $value)
 
 get ($name)
 
 setAmount ($amount, $cents=false)
 
 getAmount ()
 
 getCardTypes ()
 
 getTestCardNumbers ()
 
 setCardType ($type)
 
 setURL ($new_url)
 
 process ()
 
 getResponse ()
 
 explainStatus ()
 
 setMerchant ($merchant_no)
 
 setReference ($ref_no)
 
 setCCV ($ccv_no)
 
 setCardNumber ($card_no)
 
 setCardExpiryMonth ($month)
 
 setCardExpiryYear ($year)
 
 setCardName ($name)
 
 setInfoEmail ($email)
 
 setRedirectURL ($value, $email=false)
 
 setTest ()
 

Data Fields

 $parameters
 
 $response
 
 $eps_v3plus_responses
 
 $card_types
 
 $test_card_numbers
 
 $_status_codes
 

Detailed Description

Definition at line 39 of file esec_processor.inc.

Member Function Documentation

Constructor

Definition at line 152 of file esec_processor.inc.

explainStatus ( )

returns message according to result status code

public

Returns
string

Definition at line 343 of file esec_processor.inc.

get (   $name)

returns parameter value by name

Parameters
$namename of the parameter

private

Returns
mixed

Definition at line 206 of file esec_processor.inc.

getAmount ( )

Get Charge Amount

public

Returns
string

Definition at line 240 of file esec_processor.inc.

getCardTypes ( )

returns array of possible card types

public

Returns
array

Definition at line 253 of file esec_processor.inc.

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 322 of file esec_processor.inc.

getTestCardNumbers ( )

Get array of valid card numbers for testing

public

Returns
array

Definition at line 266 of file esec_processor.inc.

process ( )

Process the given Transaction

public

Returns
boolean

Definition at line 308 of file esec_processor.inc.

set (   $name,
  $value 
)

sets parameter value by name

Parameters
$namename of the parameter
$valuenew value of the parameter

private

Returns
void

Definition at line 174 of file esec_processor.inc.

setAmount (   $amount,
  $cents = false 
)

sets amount for transaction

Parameters
$amountamount
$centsif true, then amount in cents otherwise in dollars.

public

Returns
void

Definition at line 222 of file esec_processor.inc.

setArray (   $name,
  $value 
)

sets parameter value by name as an array

Parameters
$namename of the parameter
$valuenew value of the parameter

private

Returns
void

Definition at line 189 of file esec_processor.inc.

setCardExpiryMonth (   $month)

sets card expiry month

Parameters
$monthcard expiry month

public

Returns
void

Definition at line 426 of file esec_processor.inc.

setCardExpiryYear (   $year)

sets card expiry year

Parameters
$yearcard expiry year

public

Returns
void

Definition at line 441 of file esec_processor.inc.

setCardName (   $name)

sets card name

Parameters
$namecard name

public

Returns
void

Definition at line 455 of file esec_processor.inc.

setCardNumber (   $card_no)

sets card number

Parameters
$card_nocard number

public

Returns
void

Definition at line 411 of file esec_processor.inc.

setCardType (   $type)

sets card type

Parameters
$typetype of the card

public

Returns
void

Definition at line 281 of file esec_processor.inc.

setCCV (   $ccv_no)

set CCV number

Parameters
$ccv_noCCV - credit card verification number

public

Returns
void

Definition at line 396 of file esec_processor.inc.

setInfoEmail (   $email)

sets card type

Parameters
string$emailthe email address

public

Returns
void

Definition at line 469 of file esec_processor.inc.

setMerchant (   $merchant_no)

sets merchant

Parameters
$merchant_nomerchant number

public

Returns
void

Definition at line 366 of file esec_processor.inc.

setRedirectURL (   $value,
  $email = false 
)

sets the redirect URL

Parameters
string$valuethe value to set
bool$emailflag to specify it is an email address

public

Returns
void

Definition at line 484 of file esec_processor.inc.

setReference (   $ref_no)

sets reference number

Parameters
$ref_noreference number

public

Returns
void

Definition at line 381 of file esec_processor.inc.

setTest ( )

sets paramenters required for test transaction using test values in this case card name should be "test" and card number "testcard"

This function has to be called after all the other attributes have been set.

public

Returns
void

Definition at line 504 of file esec_processor.inc.

setURL (   $new_url)

sets URL for gateway

Parameters
$new_urlnew URL of the gateway

public

Returns
void

Definition at line 295 of file esec_processor.inc.

Field Documentation

$card_types
Initial value:
= Array(
"visa" => "visa",
"mastercard"=> "mastercard",
"amex" => "amex",
"dinersclub"=> "dinersclub",
"jcb" => "jcb"
)

Definition at line 57 of file esec_processor.inc.

$eps_v3plus_responses
Initial value:
= Array(
'ref-id',
'auth-id',
'message',
'signature',
'eft-response',
'txn-id',
'settlement-date'
)

Definition at line 47 of file esec_processor.inc.

$test_card_numbers
Initial value:
= Array (
"testsuccess" => "Test Success",
"testfailure" => "Test Failure",
"testtimeout" => "Test Timeout"
)

Definition at line 65 of file esec_processor.inc.


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