Oh Great Wisened Ones,
For various logistical reasons I'd like to strike the "Payment Amount:$XX.XX from being automagically inserted into the order history comments field when using paypalwpp.php.
I'm guessing if I REM the following line in paypalwpp.php I'd achieve the effect I'm looking for, but I'd like to run it by you folks before I start hacking at the module.
From this...
PHP Code:
$commentString = "Transaction ID: :transID: " .
(isset($this->responsedata['PPREF']) ? "\nPPRef: " . $this->responsedata['PPREF'] : "") .
(isset($this->responsedata['AUTHCODE'])? "\nAuthCode: " . $this->responsedata['AUTHCODE'] : "") .
"\nPayment Type: :pmtType: " .
"\nTimestamp: :pmtTime: " .
"\nPayment Status: :pmtStatus: " .
($this->avs != 'N/A' ? "\nAVS Code: ".$this->avs."\nCVV2 Code: ".$this->cvv2 : '') .
"\nAmount: :orderAmt: ";
$commentString = $db->bindVars($commentString, ':transID:', $this->transaction_id, 'noquotestring');
$commentString = $db->bindVars($commentString, ':pmtType:', $this->payment_type, 'noquotestring');
$commentString = $db->bindVars($commentString, ':pmtTime:', $this->payment_time, 'noquotestring');
$commentString = $db->bindVars($commentString, ':pmtStatus:', $this->payment_status, 'noquotestring');
$commentString = $db->bindVars($commentString, ':orderAmt:', $this->amt, 'noquotestring');
To this (last line)...
PHP Code:
$commentString = "Transaction ID: :transID: " .
(isset($this->responsedata['PPREF']) ? "\nPPRef: " . $this->responsedata['PPREF'] : "") .
(isset($this->responsedata['AUTHCODE'])? "\nAuthCode: " . $this->responsedata['AUTHCODE'] : "") .
"\nPayment Type: :pmtType: " .
"\nTimestamp: :pmtTime: " .
"\nPayment Status: :pmtStatus: " .
($this->avs != 'N/A' ? "\nAVS Code: ".$this->avs."\nCVV2 Code: ".$this->cvv2 : '') .
"\nAmount: :orderAmt: ";
$commentString = $db->bindVars($commentString, ':transID:', $this->transaction_id, 'noquotestring');
$commentString = $db->bindVars($commentString, ':pmtType:', $this->payment_type, 'noquotestring');
$commentString = $db->bindVars($commentString, ':pmtTime:', $this->payment_time, 'noquotestring');
$commentString = $db->bindVars($commentString, ':pmtStatus:', $this->payment_status, 'noquotestring');
// $commentString = $db->bindVars($commentString, ':orderAmt:', $this->amt, 'noquotestring');
Thanks in advance,
Bookmarks