CORE POS - Fannie
The CORE POS back end
Public Member Functions | Public Attributes | List of all members
MercuryE2E Class Reference
Inheritance diagram for MercuryE2E:
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 ($skipReversal, $domain="w1.mercurypay.com")
 
 send_return ($skipReversal, $domain="w1.mercurypay.com", $specificAmount=false)
 
 refnum ($transID)
 
 getTermID ()
 
 getPw ()
 
 parseEncBlock ($str)
 
 parsePinBlock ($str)
 
 dehexify ($in)
 
- 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())
 
 curlSend ($data=False, $type='POST', $xml=False)
 
 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
 

Additional Inherited Members

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

Member Function Documentation

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::send_auth (   $domain = "w1.mercurypay.com")

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

MercuryE2E::send_void (   $skipReversal,
  $domain = "w1.mercurypay.com" 
)

Updated for E2E


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