Zen Cart Logo
Forums / PayPal Express Checkout support / paypalwpp.php - How to strike Payment Amount from comments?

paypalwpp.php - How to strike Payment Amount from comments?

Locked

Views: 1,451

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
5 Sep 2007, 4:40 AM
#1
mrforce avatar

mrforce

New Zenner

Join Date:
Aug 2006
Location:
Big D
Posts:
36
Plugin Contributions:
0

paypalwpp.php - How to strike Payment Amount from comments?

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...

    $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)...

    $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,

5 Sep 2007, 5:09 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: paypalwpp.php - How to strike Payment Amount from comments?

You would be better off changing this line:"\nAmount: :orderAmt: "; to just this:```
[B] ""; [/B]

5 Sep 2007, 1:17 PM
#3
mrforce avatar

mrforce

New Zenner

Join Date:
Aug 2006
Location:
Big D
Posts:
36
Plugin Contributions:
0

Re: paypalwpp.php - How to strike Payment Amount from comments?

Thank you very kindly, Sir...Will do.

Regards,