If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / PayPal Express Checkout support / PayPal tries to process, and then the buyer gets dumped back to step 2 of 3

PayPal tries to process, and then the buyer gets dumped back to step 2 of 3

Locked

Started by fletch on 29 Sep 2012, 7:35 PM · Views: 3,183

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
29 Sep 2012, 7:35 PM
#1
fletch avatar

fletch

New Zenner

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

Post #1 by fletch

Hi Everyone,

Like others in this thread, I too am experiencing the "Blank Address" error when buyers try to purchase

our download only products, which comprises our entire inventory.

The error occurs when they try to buy through PayPal (We use the Express option). They get the error:

PROBLEM: We're sorry. PayPal has unexpectedly returned a blank address. In order to complete your

purchase, please provide your address by clicking the "Sign Up" 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.

The users have already registered and provided their full information on our site.

THINGS I'VE TRIED:

I've implemented the fix outlined at http://gemerit.com/xbo3 , which is to say, I've entered the line:

if ($_SESSION['cart']->get_content_type() != 'virtual')

into the appropriate place in paypalwpp.php. This gets rid of the error; however, it dumps the user back

to step 2 of 3. Attempts to continue results in the same thing happening: PayPal tries to process, and

then the buyer gets dumped back to step 2 of 3.

I recall another ZC user experiencing this, and s/he seemed to figure it out but didn't really provide

the answer. Unfortunately, that thread is locked so I can't ask him/her about it.

We're currently using ZC 1.5.0 (thus the fix applied). I see that 1.5.1 is available for upgrading, and

I know it is supposed to have the fix for this issue, but I'm assuming the fix is no more than what I put

in already for 1.5.0. So, I'm guessing I'll be stuck where I am now.

The link to our store is www.octoberdawndesigns.com/store

Other notes of interest:

What version of Zen Cart? 1.5.0

Is it a new install or an upgrade? New Install

What the addons/contributions you have installed? NONE

What customizations have you made? I changed paypalwpp.php to implement the fix outlined above

What type of server are you using? bluehost domain

Are you installing locally? No

What operating system? Linux, using Mysql.

Any help on this would be very much appreciated. In fact, I'm certain many bards would be composing

songs and poetry in your honor if you were to provide the elusive answer!

Alias,
Fletch

29 Sep 2012, 8:49 PM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

So, to clarify, after applying "the fix", your customers are no longer getting the "blank address" message you initially talked about, right?
As in, the problem has morphed into another issue, right?

What's in the PayPal debug logs? http://www.zen-cart.com/showthread.php?61199-Debug-Logging-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.

29 Sep 2012, 9:01 PM
#3
fletch avatar

fletch

New Zenner

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

Post #3 by fletch

DrByte:

So, to clarify, after applying "the fix", your customers are no longer getting the "blank address" message you initially talked about, right?
As in, the problem has morphed into another issue, right?

What's in the PayPal debug logs? http://www.zen-cart.com/showthread.php?61199-Debug-Logging-PayPal

Well, unfortunately I'm not certain. The error has gone away, but I feel like all I did with the line of code was to mask the error.

To answer your question, the error is no longer reported, but the user is still unable to purchase anything. Instead, when they get the the final step to purchase (and end up on the PP site), after authorizing the payment they get returned back to the 2 of 3 page with nothing purchased.

I've attached the log files to this message, but just in case that didn't work here's the last log file with the error:


Sep-28-2012 20:10:40 (1348884640)
termEC-1
Killed the session vars as requested

Sep-28-2012 20:10:40 (1348884640)
termEC-2
BEFORE: $this->showPaymentPage = 0
Token Data:

Sep-28-2012 20:10:40 (1348884640)
termEC-3
AFTER: $this->showPaymentPage = 0

Sep-28-2012 20:10:40 (1348884640)
termEC-7
$this->showPaymentPage NOT true, and have custom page parameter: create_account

Sep-28-2012 20:10:40 (1348884640)
termEC-10
Redirecting to create_account - Stack: header
Message: 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 "Sign Up" 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.
Session Data: Array
(
[securityToken] => 1fc4203bd2398130063f4646fb149278
[customers_host_address] => 208.74.141.140
[cartID] =>
[cart] => shoppingCart Object
(
[contents] => Array
(
[224:c7cd97a474dda6167dff35915e0e0750] => Array
(
[qty] => 1
[attributes] => Array
(
[21] => 70
)

                    )

                [227:9726c8c8fa667072e5411fd6d738eebe] => Array
                    (
                        [qty] => 1
                        [attributes] => Array
                            (
                                [21] => 70
                                [22] => 71
                                [23] => 72
                            )

                    )

                [226:df4d9ba911e525140d951cf256c4e713] => Array
                    (
                        [qty] => 1
                        [attributes] => Array
                            (
                                [21] => 70
                            )

                    )

            )

        [total] => 6.6
        [weight] => 0
        [cartID] => 77791
        [content_type] => virtual
        [free_shipping_item] => 3
        [free_shipping_weight] => 0
        [free_shipping_price] => 6.6
    )

[navigation] => navigationHistory Object
    (
        [path] => Array
            (
                [0] => Array
                    (
                        [page] => index
                        [mode] => NONSSL
                        [get] => Array
                            (
                                [type] => ec
                                [token] => EC-7LU71591AN037880U
                                [PayerID] => 7XDSFWJB2BCLW
                            )

                        [post] => Array
                            (
                            )

                    )

            )

        [snapshot] => Array
            (
            )

    )

[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => USD
[today_is] => 2012-09-28
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => 208.74.141.140
[customer_id] => 5
[customer_default_address_id] => 5
[customers_authorization] => 0
[customer_first_name] => Teresa
[customer_last_name] => Shoaf
[customer_country_id] => 223
[customer_zone_id] => 43
[new_products_id_in_cart] => 
[valid_to_checkout] => 1
[cart_errors] => 
[payment] => paypalwpp
[cot_gv] => 0
[messageToStack] => Array
    (
        [0] => Array
            (
                [class] => header
                [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 "Sign Up" 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.
                [type] => error
            )

    )

)

=================================


29 Sep 2012, 9:23 PM
#4
drbyte avatar

drbyte

Sensei

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

Post #4 by drbyte

Are those logs from "before", or from "after" fixing that one line of code?

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

29 Sep 2012, 9:25 PM
#5
drbyte avatar

drbyte

Sensei

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

Post #5 by drbyte

Were there any PayPal_CURL_xxxxxx.log files generated as well?

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

29 Sep 2012, 10:10 PM
#6
fletch avatar

fletch

New Zenner

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

Post #6 by fletch

Yeah, those are pre-fix logs. Unfortunately, we can't use our own card since it's tied to the paypal account.

We're finding someone to make a quick purchase. As soon as I get that and the logs, I'll get them right up here! :)

Thanks!
Fletch

30 Sep 2012, 12:57 AM
#7
fletch avatar

fletch

New Zenner

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

Post #7 by fletch

Well, don't I feel sheepish. It appears that the fix worked perfectly well! The other person tried to buy something and it went through just fine. I apologize for wasting everyone's time.

I do have a question, however. Shouldn't I be getting an error showing that a transaction failed in Zen Cart when it fails in PayPal?

30 Sep 2012, 1:04 AM
#8
drbyte avatar

drbyte

Sensei

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

Post #8 by drbyte

Fletch:

Shouldn't I be getting an error showing that a transaction failed in Zen Cart when it fails in PayPal?
No.
Zen Cart knows nothing of the failure since only "paid" orders actually get saved to the database.

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

12 Dec 2012, 9:10 PM
#9
ronpeled avatar

ronpeled

Zen Follower

Join Date:
Sep 2004
Location:
LA, California
Posts:
111
Plugin Contributions:
0

Post #9 by ronpeled

This happened to me when I tried tinkering with the paypalwpp.php file. The whole interaction between PayPal and ZenCart goes back and forth a couple of times, and it expects certain information. When I forced ZenCart to send to PayPal without an address, it returned the same thing. Maybe you should restore all of your files and make sure you are using latest version and most up to date files. Or at least use the untouched files that came with your version of ZenCart.

I'm still having issues with my PayPal checkout:
http://www.zen-cart.com/showthread.php?202964-Error-10736-Shows-up-often-after-upgrade-to-ZC-1-5-1

Ron Peled