Forums / PayPal Express Checkout support / Account holder's phone number not picked up by PayPal Express

Account holder's phone number not picked up by PayPal Express

Locked

Started by lat9 on 15 Oct 2010, 6:36 PM · Views: 2,740

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
15 Oct 2010, 6:36 PM
#1
lat9 avatar

lat9

Administrator

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

Account holder's phone number not picked up by PayPal Express

Running ZC 1.3.9f using PayPal EC sandbox.

When an account-holder chooses to use PayPal (selected from the checkout_payment page), their address and e-mail information is correctly picked up by PPEC ... but the phone number (which I've set as required) isn't.

The phone number, as stored in the database, is of the form 'nnn nnn nnnn' (blanks separating the digit blocks) and I see in the paypal log that the value is transferred with the [PHONENUM] tag. I noticed that PayPal 'wants' the phone number as 'nnn-nnn-nnnn' (hyphens separating the blocks); is it necessary for the phone number to be re-formatted in the database for the value to be accepted by PayPal?

16 Oct 2010, 4:08 PM
#2
lat9 avatar

lat9

Administrator

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

Re: Account holder's phone number not picked up by PayPal Express

OK, here's another change to /includes/modules/payment/paypalwpp.php (line 1490):

       $options['SHIPTOPHONENUM'] = $zc_getemail->fields['customers_telephone']; // lat9 ... was 'PHONENUM'

With this change, a logged-in customer who goes through the checkout process (going to PayPal from checkout_confirmation) has their phone number shown on the PayPal website.

19 Oct 2010, 1:49 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: Account holder's phone number not picked up by PayPal Express

Have you tested whether that works accurately when using both virtual and physical goods?
The "SHIPTO" keys are only submitted when shipping is relevant. You'll note that they're segregated for that reason even in PayPal's documentation.

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

19 Oct 2010, 4:46 AM
#4
lat9 avatar

lat9

Administrator

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

Re: Account holder's phone number not picked up by PayPal Express

DrByte, I've checked this out with both physical and virtual carts; the phone number shows up on both.

19 Oct 2010, 5:26 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: Account holder's phone number not picked up by PayPal Express

Further study of both the incomplete PayPal documentation and the actual API response parameters indicates that PHONENUM is not only deprecated but actually useless as a request parameter, but BOTH are used as response parameters, and not consistently.

One more bug to report to PayPal.

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