Forums / PayPal Express Checkout support / PayPal has unexpectedly returned a blank address

PayPal has unexpectedly returned a blank address

Views: 20,001

Results 41 to 55 of 55
8 Jun 2012, 5:04 AM
#41
wulf359 avatar

wulf359

New Zenner

Join Date:
Feb 2008
Posts:
44
Plugin Contributions:
0

PayPal has unexpectedly returned a blank address

DrByte:

May have found a bug in virtual products handling, by virtue of the way PayPal handles addresses for virtual items.

Try setting your product as "Product Is Virtual" = Yes, Skip Shipping Address.
And make this small code change by adding in the new highlighted line exactly as shown:
/includes/modules/payment/paypalwpp.php, line 1661 (v1.5.0) ```
// Check for blank address -- if address received from PayPal is blank, ask the customer to register in the store first and then resume checkout
[B]if ($_SESSION['cart']->get_content_type() != 'virtual')[/B]
if ($response['SHIPTONAME'] . $response['SHIPTOSTREET'] . $response['SHIPTOSTREET2'] . $response['SHIPTOCITY'] . $response['SHIPTOSTATE'] . $response['SHIPTOZIP'] . $response['SHIPTOCOUNTRYCODE'] == '') {


Worked like a charm, many thanks
14 Jun 2012, 9:02 PM
#42
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

Using pp express, free shipping, shipping address required....gives me sorry we are not shipping to your address at this time on step one of checkout.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

14 Jun 2012, 9:08 PM
#43
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

Also, I have pp standard running at the same time as express. I tried using standard and checked out successfully with paypal for a $1 item using my CC.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

14 Jun 2012, 9:56 PM
#44
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

Well I tried express again and everything seems to be working normal.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

22 Jul 2012, 6:27 PM
#45
meljen avatar

meljen

Zen Follower

Join Date:
Apr 2012
Posts:
127
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

Since this seems to be the active thread... I have only digital download products & have those set up according to the ZC guides here (as far as product/shipping settings) - if I use the fix and set them all to 'virtual', will that mess up my downloads?

...and along with 'product is virtual->skip shipping address' should I change 'always free shipping->no, normal shipping rules' to 'yes, always free shipping'? I need to comb through my catalog of 700+ products and I want to be sure I make the correct changes. :-)

22 Jul 2012, 11:36 PM
#46
meljen avatar

meljen

Zen Follower

Join Date:
Apr 2012
Posts:
127
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

Please completely ignore my note above.

To anyone else wondering, digital products are virtual already (duh me) - so all I needed to do was the code fix Dr. Byte suggests in post #21.

Good luck to everyone else having trouble!

16 Sep 2012, 10:20 PM
#47
n8tnu1951 avatar

n8tnu1951

New Zenner

Join Date:
Sep 2012
Posts:
9
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

I have this problem also but I do not have the file shown here in the directory listed here
dudley

17 Sep 2012, 12:16 AM
#48
drbyte avatar

drbyte

Sensei

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

Re: PayPal has unexpectedly returned a blank address

n8tnu1951:

but I do not have the file shown here in the directory listed here
... um. Check again. If you don't have that file then you're using an extremely old version of Zen Cart ... like 1.3.6 or older ... and that would be just, well, a very bad choice since that's like from 2006.

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

6 Jan 2013, 8:19 PM
#49
tuner avatar

tuner

New Zenner

Join Date:
Mar 2012
Posts:
19
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

we are using version v.1.5.1 and the code is supposedly fixed in this version. We also do have the products as Virtual products with Yes, Skip Shipping Address. We are still getting this geographic region error.
There has to be something else wrong or not set right?
Help! Thanks in advance

We are using:

Server 2008
PHP 5.4.10
Zencart 1.5.1

We are not asking for a shipping address for customers when they registered as a user. In ther New User - we have only one country "Canada" As per "What country/state deletions have you done?" We are in Canada and have deleted all the other countries - We do not ask for a "state or Prov" as we do not want it keep this information.

6 Jan 2013, 9:10 PM
#50
tuner avatar

tuner

New Zenner

Join Date:
Mar 2012
Posts:
19
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

So we changed payments to the PayPal Standard Version and the Cart Works !!! Uninstalled PayPal Express

Database Host: localhost (127.0.0.1)
Server OS: Windows NT YXD 6.1 build 7601 (Windows Server 2008 R2 Datacenter Edition Service Pack 1) i586
Database: MySQL 5.5.28
HTTP Server: Microsoft-IIS/7.5
PHP Version: 5.4.10 (Zend: 2.4.0)
PHP Memory Limit: 1024M
PHP Safe Mode: Off
PHP File Uploads: On
Max Size: 20M POST Max Size: 20M
Database Data Size: 334 kB Database Index Size: 488 kB

Tuner:

we are using version v.1.5.1 and the code is supposedly fixed in this version. We also do have the products as Virtual products with Yes, Skip Shipping Address. We are still getting this geographic region error.
There has to be something else wrong or not set right?
Help! Thanks in advance

We are using:

Server 2008
PHP 5.4.10
Zencart 1.5.1

We are not asking for a shipping address for customers when they registered as a user. In ther New User - we have only one country "Canada" As per "What country/state deletions have you done?" We are in Canada and have deleted all the other countries - We do not ask for a "state or Prov" as we do not want it keep this information.

6 Jan 2013, 9:19 PM
#51
tuner avatar

tuner

New Zenner

Join Date:
Mar 2012
Posts:
19
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

So what do I do to get Express working without address, State , country or Zip/Postal Code?

Without changing anything to the Virtual Product or Shipping or Customer account. We changed payments to the PayPal Standard Version and the Cart Works !!! He had to uninstalled PayPal Express as like the post above we were not able to have both working at the same time.

Database Host: localhost (127.0.0.1)
Server OS: Windows NT YXD 6.1 build 7601 (Windows Server 2008 R2 Datacenter Edition Service Pack 1) i586
Database: MySQL 5.5.28
HTTP Server: Microsoft-IIS/7.5
PHP Version: 5.4.10 (Zend: 2.4.0)
PHP Memory Limit: 1024M
PHP Safe Mode: Off
PHP File Uploads: On
Max Size: 20M POST Max Size: 20M
Database Data Size: 334 kB Database Index Size: 488 kB

7 Jan 2013, 11:54 AM
#52
drbyte avatar

drbyte

Sensei

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

Re: PayPal has unexpectedly returned a blank address

Tuner:

We are in Canada and have deleted all the other countries - We do not ask for a "state or Prov" as we do not want it keep this information.That's probably the cause of your problem.
If Zen Cart cannot take the address received from PayPal and match it up with valid country+province combinations in your store, then it will fail as described.

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

30 Sep 2014, 10:12 AM
#53
kjharrison avatar

kjharrison

Zen Follower

Join Date:
Jun 2006
Location:
Providence
Posts:
137
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

Am having the same problem. I don't have file /www/includes/modules/payment/paypal/paypalwpp.php
I do have:
/www/includes/modules/payment/paypal/paypalwpp_admin_notification.php

Am I missing a file?

30 Sep 2014, 10:24 AM
#54
kjharrison avatar

kjharrison

Zen Follower

Join Date:
Jun 2006
Location:
Providence
Posts:
137
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

Oops. Found the file. I was in the Paypal folder. Will try it later today to see if it fixes it.

30 Sep 2014, 8:19 PM
#55
kjharrison avatar

kjharrison

Zen Follower

Join Date:
Jun 2006
Location:
Providence
Posts:
137
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

It worked! Thank you for this thread.