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

PayPal has unexpectedly returned a blank address

Views: 20,001

Results 21 to 40 of 55
10 Jan 2012, 4:52 AM
#21
drbyte avatar

drbyte

Sensei

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

PayPal has unexpectedly returned a blank address

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'] == '') {

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

10 Jan 2012, 5:13 AM
#22
slingblade01 avatar

slingblade01

New Zenner

Join Date:
Dec 2011
Location:
Atlanta, GA
Posts:
32
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

I'll test it in about an hour after a db swap.

Thanks for the idea, I would love to skip this shipping step.

10 Jan 2012, 8:09 AM
#23
slingblade01 avatar

slingblade01

New Zenner

Join Date:
Dec 2011
Location:
Atlanta, GA
Posts:
32
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

No luck.

I switched back to virtual and edited paypalwpp.

While finalizing the purchase in PP, I was sent back to steps 2 and 3 of the cart.

10 Jan 2012, 4:22 PM
#24
drbyte avatar

drbyte

Sensei

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

Re: PayPal has unexpectedly returned a blank address

Steps 2 and 3 are still necessary. But the "unexpectedly returned a blank address" problem is gone, right?

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

11 Jan 2012, 3:31 AM
#25
slingblade01 avatar

slingblade01

New Zenner

Join Date:
Dec 2011
Location:
Atlanta, GA
Posts:
32
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

DrByte:

Steps 2 and 3 are still necessary. But the "unexpectedly returned a blank address" problem is gone, right?

Ok, I was confused. Step 3 "Order Confirmation" appeared to be a shipping confirmation because of the shipping address.

So I guess I should rephrase my question:
Why the return to the cart from PP?
PP has these confirmation steps built in to their system.
This is very confusing to customers who want a true express checkout.

11 Jan 2012, 6:26 AM
#26
drbyte avatar

drbyte

Sensei

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

Re: PayPal has unexpectedly returned a blank address

slingblade01:

So I guess I should rephrase my question:
Why the return to the cart from PP?
PP has these confirmation steps built in to their system.
The return to cart is necessary so that these situations can be handled:

  • shipping, if applicable (needs address info to calculate)
  • taxes, if applicable (needs address info to calculate)
  • coupons, if offered (PayPal doesn't support this on their end)
  • gift certificates, if offered (PayPal doesn't support YOUR gift certs on their end, only the ones THEY issue)

Plus, it's the way PayPal architected it initially. They're making some changes to bandage some of these limitations as time goes on, some even on our suggestion, amazingly enough.

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

18 Feb 2012, 7:10 PM
#27
jbattin avatar

jbattin

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

#21 in this thread solved my issue.

Thanks.:clap:

1 Mar 2012, 3:25 AM
#28
alejas avatar

alejas

New Zenner

Join Date:
Feb 2012
Posts:
8
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

Just wondering if there are any new developments on this. I have the same problem and have tried #21 along with several other changes but no luck.

5 Apr 2012, 10:14 PM
#29
lee2 avatar

lee2

New Zenner

Join Date:
Dec 2011
Posts:
6
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

I am having the same problem and post 21 didn't help ether. Its very frustrating! I am using V1.50 and moved from go daddy to host gator. I had no problem on go daddy:no:

8 Apr 2012, 5:48 PM
#30
simondale123 avatar

simondale123

New Zenner

Join Date:
Jun 2008
Posts:
60
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

Post #21 solved it for me! (I'm using an entirely fresh install of v1.5 with no mods).

Thanks DrByte!

All the best

Simon

24 Apr 2012, 3:56 PM
#31
marvel avatar

marvel

New Zenner

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

Re: PayPal has unexpectedly returned a blank address

I updated from 1.3.9 to 1.5.0 and have the same issue. I think post #21 solved it for me as well. It's too early to tell though.

25 Apr 2012, 1:56 PM
#32
kachana avatar

kachana

New Zenner

Join Date:
Oct 2008
Posts:
24
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

Post #21 worked for me also:)

26 Apr 2012, 7:15 PM
#33
coastalwanderer avatar

coastalwanderer

New Zenner

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

Re: PayPal has unexpectedly returned a blank address

#21 works for me too.

:smile:
Dave

11 May 2012, 3:34 PM
#34
cwd avatar

cwd

New Zenner

Join Date:
Nov 2005
Location:
Coldwater Michigan
Posts:
35
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

Post #21 solved the problem for me also.

17 May 2012, 2:49 PM
#35
davestrand avatar

davestrand

New Zenner

Join Date:
Nov 2006
Posts:
36
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

It fixed my paypal issues as well. Hopefully this little bug fix will eventually come standard with the download.

18 May 2012, 3:27 PM
#36
bevcox avatar

bevcox

New Zenner

Join Date:
Nov 2009
Posts:
6
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

Yes, this fix seems to be working fine. Is there a caveat I should watch for...is this an actual bug that will be fixed. In any event, thanks so much for getting the store up and running again!

24 May 2012, 12:07 PM
#37
micallen avatar

micallen

New Zenner

Join Date:
May 2012
Location:
South Carolina
Posts:
40
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

#21 helped me a well. Thanks !!

8 Jun 2012, 2:22 AM
#38
tulipdude avatar

tulipdude

New Zenner

Join Date:
Jun 2012
Posts:
2
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

I too am receiving this "We're sorry. PayPal has unexpectedly returned a blank address" message.

PayPal is set to a Business Account.

My test case has "Yes, Skip Shipping Address" and "Yes, Always Free Shipping" because it is an MP3 file.
If I want to use PayPal Website Payments Standard - IPN,* I can*, but I want to process credit cards using
PayPal, so I want to use PayPal Express Checkout:

I am using 1.5 and have never used any other version, I am a newbie.
Any suggestions??

My PayPal Express Checkout settings are:
Enable this Payment Module
True

Sort order of display.
1

Payment Zone
--none--

Express Checkout Shortcut Button
Off

Set Order Status
Processing [2]

Set Unpaid Order Status
Pending [1]

Set Refund Order Status
Pending [1]

Express Checkout: Require Confirmed Address
No

Express Checkout: Select Cheapest Shipping Automatically
Yes

Express Checkout: Skip Payment Page
Yes

Express Checkout: Automatic Account Creation
Yes

Payment Action
Final Sale

Transaction Currency
Only USD

Store (Brand) Name at PayPal
Peace and Brotherhood Store

Allow eCheck?
Any

PayPal Page Style
Primary

API Signature -- Username


API Signature -- Password


API Signature -- Signature Code


PayPal Mode
PayPal

Live or Sandbox
live

Debug Mode
Off

8 Jun 2012, 2:40 AM
#39
tulipdude avatar

tulipdude

New Zenner

Join Date:
Jun 2012
Posts:
2
Plugin Contributions:
0

Re: PayPal has unexpectedly returned a blank address

When was the bug referred to in #21 fixed?
Thank you.

8 Jun 2012, 2:42 AM
#40
drbyte avatar

drbyte

Sensei

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

Re: PayPal has unexpectedly returned a blank address

tulipdude:

When was the bug referred to in #21 fixed?
Thank you.
There has not yet been any official release containing the code change you mentioned in post #21.
It is fixed in v1.5.1

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