CORE POS - IS4C
The CORE POS front end
Public Member Functions | Public Attributes | List of all members
MercuryE2E Class Reference
Inheritance diagram for MercuryE2E:
BasicCCModule BasicCCModule

Public Member Functions

 handlesType ($type)
 
 entered ($validate, $json)
 
 paycard_void ($transID, $laneNo=-1, $transNo=-1, $json=array())
 
 handleResponse ($authResult)
 
 handleResponseAuth ($authResult)
 
 handleResponseVoid ($authResult)
 
 cleanup ($json)
 
 doSend ($type)
 
 send_auth ($domain="w1.mercurypay.com")
 
 send_void ()
 
 refnum ($transID)
 
 getTermID ()
 
 getPw ()
 
 parseEncBlock ($str)
 
 parsePinBlock ($str)
 
 dehexify ($in)
 
 handlesType ($type)
 
 entered ($validate, $json)
 
 paycard_void ($transID, $laneNo=-1, $transNo=-1, $json=array())
 
 handleResponse ($authResult)
 
 cleanup ($json)
 
 doSend ($type)
 
 refnum ($transID)
 
 myRefNum ($ref)
 
 lookupTransaction ($ref, $local, $mode)
 
- Public Member Functions inherited from BasicCCModule
 BasicCCModule ()
 
 handlesType ($type)
 
 entered ($validate, $json)
 
 doSend ($type)
 
 cleanup ($json)
 
 paycard_void ($transID, $laneNo=-1, $transNo=-1, $json=array())
 
 myRefNum ($ref)
 
 lookupTransaction ($ref, $local, $mode)
 
 curlSend ($data=False, $type='POST', $xml=False, $extraOpts=array(), $auto_handle=true)
 
 handleResponse ($response)
 
 refnum ($transID)
 
 array2post ($parray)
 
 soapify ($action, $objs, $namespace="", $encode_tags=true)
 
 desoapify ($action, $soaptext)
 
 setErrorMsg ($errorCode)
 
 setPAN ($in)
 

Public Attributes

 $voidTrans
 
 $voidRef
 
 $SOAPACTION = "http://www.mercurypay.com/CreditTransaction"
 
 $second_try
 
const PRIMARY_URL = 'w1.mercurypay.com'
 
const BACKUP_URL = 'w2.backuppay.com'
 
- Public Attributes inherited from BasicCCModule
 $last_ref_num = ''
 
 $last_req_id = 0
 
 $last_paycard_transaction_id = 0
 

Additional Inherited Members

- Protected Attributes inherited from BasicCCModule
 $GATEWAY
 
 $SOAPACTION = ''
 
 $SOAP_ENVELOPE_ATTRS
 
 $trans_pan
 

Member Function Documentation

MercuryE2E::cleanup (   $json)

Lookup user-configured tender Failover to defaults if tender does not exist Since we already have an authorization at this point, adding a default tender record to the transaction is better than issuing an error message

Now look up card-issuer specific overrides, if any

MercuryE2E::entered (   $validate,
  $json 
)

Updated for E2E Status: done

MercuryE2E::entered (   $validate,
  $json 
)

Updated for E2E Status: done

MercuryE2E::getPw ( )

Return real or testing password depending on whether training mode is on

MercuryE2E::getTermID ( )

Return real or testing ID depending on whether training mode is on

MercuryE2E::handleResponseAuth (   $authResult)

Updated for E2E

MercuryE2E::handleResponseVoid (   $authResult)

Updated for E2E

MercuryE2E::parseEncBlock (   $str)

In theory parses output produced by MagTek and ID tech devices (based on spec / examples)

Returns
array with keys
  • Format is encrypt format
  • Block is encryped PAN block
  • Key is encrypted key
  • Issuer is card issuer (Visa, MasterCard, etc)
  • Last4 is last four PAN digits
  • Name is cardholder name (if available)
MercuryE2E::paycard_void (   $transID,
  $laneNo = -1,
  $transNo = -1,
  $json = array() 
)

Updated for E2E

MercuryE2E::paycard_void (   $transID,
  $laneNo = -1,
  $transNo = -1,
  $json = array() 
)

Updated for E2E

MercuryE2E::send_auth (   $domain = "w1.mercurypay.com")

Updated for E2E Status: Should be functional once device is available

MercuryE2E::send_void ( )

Updated for E2E


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