Forums / PayPal Express Checkout support / PayPal customer note not logged into ZenCart database

PayPal customer note not logged into ZenCart database

Locked

Views: 1,214

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
15 Oct 2010, 8:02 PM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

PayPal customer note not logged into ZenCart database

Running ZC 1.3.9f, using PayPal EC sandbox (again!).

I've got PayPal set up to allow a customer comment during the checkout phase and the comment text is returned by PayPal (looking at the logs) in the [NOTETEXT] field. Unfortunately, this comment is never recorded in the customer's order.

Looking for NOTETEXT in all catalog/admin PHP files resulted in 0 matches.

I also noticed that the PayPal Name/Value Pair Developer Guide was updated in September, 2010 to v64.4 while v1.3.9f is using v60 from October, 2009. Will 1.3.9 be updated to use the more recent interface?

16 Oct 2010, 1:16 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

Re: PayPal customer note not logged into ZenCart database

FWIW, I corrected this behavior by modifying /includes/modules/payment/paypalwpp.php (line 1644) to gather the NOTETEXT value in the response (was 'NOTE'):

  'order_comment'   => urldecode($response['NOTETEXT']),  // lat9 (was NOTE)
19 Oct 2010, 1:54 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: PayPal customer note not logged into ZenCart database

lat9:

FWIW, I corrected this behavior by modifying /includes/modules/payment/paypalwpp.php (line 1644) to gather the NOTETEXT value in the response (was 'NOTE'):

'order_comment' => urldecode($response['NOTETEXT']), // lat9 (was NOTE)


That is the correct change.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.