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

Public Member Functions

 prepareDataCapAuth ($type, $amount, $prompt=false)
 
 prepareDataCapVoid ($pcID)
 
 prepareDataCapBalance ($type, $prompt=false)
 
 prepareDataCapGift ($mode, $amount, $prompt)
 
 handleResponseDataCap ($xml)
 
 handleResponseDataCapBalance ($xml)
 
- Public Member Functions inherited from MercuryE2E
 handlesType ($type)
 
 entered ($validate, $json)
 
 paycardVoid ($transID, $laneNo=-1, $transNo=-1, $json=array())
 
 handleResponse ($authResult)
 
 cleanup ($json)
 
 doSend ($type)
 
 refnum ($transID)
 
 getTermID ()
 
 myRefNum ($ref)
 
 lookupTransaction ($ref, $local, $mode)
 
- Public Member Functions inherited from BasicCCModule
 __construct ()
 
 handlesType ($type)
 
 entered ($validate, $json)
 
 doSend ($type)
 
 cleanup ($json)
 
 paycardVoid ($transID, $laneNo=-1, $transNo=-1, $json=array())
 
 myRefNum ($ref)
 
 lookupTransaction ($ref, $local, $mode)
 
 handleResponse ($response)
 
 refnum ($transID)
 
 setErrorMsg ($errorCode)
 
 setPAN ($input)
 

Additional Inherited Members

- Static Public Member Functions inherited from BasicCCModule
static mockResponse ($mock)
 
- Public Attributes inherited from MercuryE2E
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
 
- Protected Member Functions inherited from MercuryE2E
 getPw ()
 
 giftServerIP ()
 
 responseToNumber ($responseCode)
 
 ebtVoucherXml ()
 
 normalizeResponseCode ($responseCode, $validResponse)
 
 beginXmlRequest ($request, $refNo=false, $recordNo=false)
 
 handlePartial ($amt, $request)
 
 getRequestObj ($ref)
 
- Protected Member Functions inherited from BasicCCModule
 curlSend ($data=False, $type='POST', $xml=False, $extraOpts=array(), $autoHandle=true)
 
 array2post ($parray)
 
 soapify ($action, $objs, $namespace="", $encode_tags=true)
 
 desoapify ($action, $soaptext)
 
- Protected Attributes inherited from MercuryE2E
 $SOAPACTION = "http://www.mercurypay.com/CreditTransaction"
 
- Protected Attributes inherited from BasicCCModule
 $GATEWAY
 
 $SOAPACTION = ''
 
 $SOAP_ENVELOPE_ATTRS
 
 $sendByType = array()
 
 $respondByType = array()
 
 $trans_pan
 

Member Function Documentation

MercuryDC::handleResponseDataCap (   $xml)

Examine XML response from Datacap transaction, log results, determine next step

Returns
[int] PaycardLib error code

handle partial auth

MercuryDC::handleResponseDataCapBalance (   $xml)

Examine XML response from Datacap transaction, extract balance and/or error determine next step

Returns
[int] PaycardLib error code
MercuryDC::prepareDataCapAuth (   $type,
  $amount,
  $prompt = false 
)

Prepare an XML request body for an PDCX or EMVX transaction

Parameters
$type[string] card type
$amount[number] authorization amount
Returns
[string] XML request body
MercuryDC::prepareDataCapBalance (   $type,
  $prompt = false 
)

Prepare an XML request body for an PDCX card balance inquiry

Parameters
$type[string] card type
Returns
[string] XML request body
MercuryDC::prepareDataCapVoid (   $pcID)

Prepare an XML request body to void an PDCX or EMVX transaction

Parameters
$pcID[int] PaycardTransactions record ID
Returns
[string] XML request

Add token and reversal data fields if available


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