Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2011
    Posts
    11
    Plugin Contributions
    0

    red flag [Fixed v1.5.1] Virtual products: PayPal has unexpectedly returned a blank address

    Hi,
    I have a Zen Shop (1.3.9) up & running with activated PayPal Express module for payment.

    If a customer is not registering manually, but directly bypassing the whole registration part by using the paypal express method, everything works fine. Cashflow works, Account is created, Email to the customer... all good!

    But if an already registered customer chooses 'PayPal' as payment method at the end of the order process it does not work. Paypal login page will load as it should, but after entering the customer paypal credentials Zen-Cart returns the following error message:


    Quote Originally Posted by Error message text
    PROBLEM: We're sorry. PayPal has unexpectedly returned a blank address. <br />In order to complete your purchase, please provide your address by clicking the &quot;Sign Up&quot; button below to create an account in our store. Then you may select PayPal again when you continue with checkout. We apologize for the inconvenience. If you have any trouble with checkout, please click the Contact Us link to explain the details to us so we can help you with your purchase and prevent the problem in the future. Thanks.'
    Any idea where the root cause is located? I already reviewed some threads and learned that there were some issues with Zen 1.3.8 and the blank adress, but those should be fixed in Zen 1.3.9.

    Thanks for any idea, where I can approach to do some more bugfixing / testing. The IPN configuration looks good to me as long as the express registration & payment works, or am I mistaking?

    Looking forward to some answers of the specialists...

    Best regards,
    Michael

  2. #2
    Join Date
    Dec 2011
    Location
    Atlanta, GA
    Posts
    32
    Plugin Contributions
    0

    Default Re: PayPal has unexpectedly returned a blank address

    My ZC>Paypal was working during testing with PP.

    Then I moved to a sub-domain for permanent location and tested checkout without PP and all was well. ZC also works with 100% off coupon while logged in. However, when logged in to ZC, PP express fails with the same above message.

    ZC 1.5.0 RC3.
    Added flexible attributes.
    Made some changes to ZC admin email accounts.
    Adjusted some attributes.

    Solutions tried:
    Re-pasted API info.
    Uninstalled PP module and reinstalled.

    It appears to have something to do with the ZC customer address being lost during the transaction.

    When it ask for you to sign up, you are still logged in and the good are still in the cart???

  3. #3
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 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)
    Code:
        // Check for blank address -- if address received from PayPal is blank, ask the customer to register in the store first and then resume checkout
    if ($_SESSION['cart']->get_content_type() != 'virtual')
        if ($response['SHIPTONAME'] . $response['SHIPTOSTREET'] . $response['SHIPTOSTREET2'] . $response['SHIPTOCITY'] . $response['SHIPTOSTATE'] . $response['SHIPTOZIP'] . $response['SHIPTOCOUNTRYCODE'] == '') {
    This fix will be added to a future version.
    .

    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.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PayPal has unexpectedly returned a blank address

    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.

 

 

Similar Threads

  1. PayPal has unexpectedly returned a blank address
    By mibo21 in forum PayPal Express Checkout support
    Replies: 54
    Last Post: 30 Sep 2014, 09:19 PM
  2. v150 Paypal has returned a blank address
    By xr3461 in forum PayPal Express Checkout support
    Replies: 9
    Last Post: 28 Dec 2012, 04:30 AM
  3. v150 Paypal has unexpectedly returned a blank address??
    By FourX in forum PayPal Express Checkout support
    Replies: 8
    Last Post: 15 Sep 2012, 01:55 AM
  4. v150 Paypyal Express blank address returned
    By meljen in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 23 Jul 2012, 12:15 AM
  5. v150 "PayPal has unexpectedly returned a blank address"
    By swjake in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 17 Feb 2012, 11:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR