Source for file LinkPoint.php
Documentation is available at LinkPoint.php
require_once 'Payment/Process2/Result.php';
require_once 'Payment/Process2/Result/Driver.php';
* Payment_Process2_Result_LinkPoint
* @author Joe Stump <joe@joestump.net>
* @package Payment_Process2
var $_statusCodeMap = array ('APPROVED' => Payment_Process2 ::RESULT_APPROVED ,
'DECLINED' => Payment_Process2 ::RESULT_DECLINED ,
'FRAUD' => Payment_Process2 ::RESULT_FRAUD );
* This array holds many of the common response codes. There are over 200
* response codes - so check the LinkPoint manual if you get a status
* code that does not match (see "Response Reason Codes & Response
* Reason Text" in the AIM manual).
var $_statusCodeMessages = array (
'APPROVED' => 'This transaction has been approved.',
'DECLINED' => 'This transaction has been declined.',
'FRAUD' => 'This transaction has been determined to be fraud.');
var $_avsCodeMap = array (
'YY' => Payment_Process2 ::AVS_MATCH ,
'YN' => Payment_Process2 ::AVS_MISMATCH ,
'YX' => Payment_Process2 ::AVS_ERROR ,
'NY' => Payment_Process2 ::AVS_MISMATCH ,
'XY' => Payment_Process2 ::AVS_MISMATCH ,
'NN' => Payment_Process2 ::AVS_MISMATCH ,
'NX' => Payment_Process2 ::AVS_MISMATCH ,
'XN' => Payment_Process2 ::AVS_MISMATCH ,
'XX' => Payment_Process2 ::AVS_ERROR
var $_avsCodeMessages = array (
'YY' => 'Address matches, zip code matches',
'YN' => 'Address matches, zip code does not match',
'YX' => 'Address matches, zip code comparison not available',
'NY' => 'Address does not match, zip code matches',
'XY' => 'Address comparison not available, zip code matches',
'NN' => 'Address comparison does not match, zip code does not match',
'NX' => 'Address does not match, zip code comparison not available',
'XN' => 'Address comparison not available, zip code does not match',
'XX' => 'Address comparison not available, zip code comparison not available'
var $_cvvCodeMap = array ('M' => Payment_Process2 ::CVV_MATCH ,
'N' => Payment_Process2 ::CVV_MISMATCH ,
'P' => Payment_Process2 ::CVV_ERROR ,
'S' => Payment_Process2 ::CVV_ERROR ,
'U' => Payment_Process2 ::CVV_ERROR ,
'X' => Payment_Process2 ::CVV_ERROR
var $_cvvCodeMessages = array (
'M' => 'Card Code Match',
'N' => 'Card code does not match',
'S' => 'Merchant has indicated that the card code is not present on the card',
'U' => 'Issuer is not certified and/or has not proivded encryption keys',
'X' => 'No response from the credit card association was received'
var $_fieldMap = array ('r_approved' => 'code',
'r_code' => 'approvalCode',
'r_ordernum' => 'transactionId'
* @author Joe Stump <joe@joestump.net>
$xml->parseString ('<response>'. $this->_rawResponse. '</response>');
$this->_mapFields ($xml->response );
// switch to DECLINED since a duplicate isn't *really* fraud
require_once 'XML/Parser.php';
* Payment_Process2_LinkPoint_XML_Parser
* XML Parser for the LinkPoint response
* @todo Split out to own class
* @author Joe Stump <joe@joestump.net>
* @package Payment_Process2
* @var array $response Raw response as an array
* @var string $tag Current tag
* @author Joe Stump <joe@joestump.net>
* @param resource $xp XML processor handler
* @param string $elem Name of XML entity
* @author Joe Stump <joe@joestump.net>
* @param resource $xp XML processor handler
* @param string $elem Name of XML entity
* @author Joe Stump <joe@joestump.net>
* @param resource $xp XML processor handler
Documentation generated on Mon, 11 Mar 2019 15:40:37 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|