Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

PayPal Express Checkout Loop

Locked

Started by ahaynes106 on 20 Sep 2011, 12:25 PM · Views: 3,088

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
20 Sep 2011, 12:25 PM
#1
ahaynes106 avatar

ahaynes106

New Zenner

Join Date:
Oct 2009
Posts:
38
Plugin Contributions:
0

Post #1 by ahaynes106

ZenCart 1.3.9g

I have hunted the threads and found similar issues, but no answers that have solved the problem for me.

When checking out, whether the PayPal Express Checkout button or the ZenCart Go To Checkout button is used, the checkout process goes all the way to PayPal where I log in to confirm the order. When I hit confirm in PayPal I am taken back to the PayPal login page where I have to login again and confirm again and the order goes through.

I turned off the PP EC Button in the admin panel and get the same result. cURL is set to FALSE as suggested in another thread. Is there anything else to check?

The site has been running fine all year until this month when customers brought this bug to our attention. So, nothing was modified prior to this occurring.

Thanks in advance for any suggestions or thread links that may help.

23 Sep 2011, 4:16 AM
#2
ahaynes106 avatar

ahaynes106

New Zenner

Join Date:
Oct 2009
Posts:
38
Plugin Contributions:
0

Post #2 by ahaynes106

:cry: I updated from 1.3.9g to 1.3.9h. However, when I reached the PayPal login and logged into PayPal and hit the Pay Now button, PayPal redirected me to their login page again. Once I logged in a second time and hit Pay Now, the order went through.

Is this a PayPal thing or is ZC just not giving PP what it needs once the Pay Now button is hit...the first time? :wacko:

The site for those curious is sunsetgrowers.com

23 Sep 2011, 4:42 AM
#3
drbyte avatar

drbyte

Sensei

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

Post #3 by drbyte

That sort of looping is usually ZC not finding the data it needs to proceed to the next step, so it goes back looking for it. Sometimes that's caused by country/zone name spelling mismatches. Sometimes it's caused by oddball server configurations that break sessions or break cookies. Often it's caused by addons which interfere with normal operation.

If things were "running fine all this year until this month", it begs the question: what got changed on your site/server to suddenly break it?

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

23 Sep 2011, 5:23 AM
#4
ahaynes106 avatar

ahaynes106

New Zenner

Join Date:
Oct 2009
Posts:
38
Plugin Contributions:
0

Post #4 by ahaynes106

LOL...that's a good question since it was not me :huh:

Seems to be a timing issue. As I was playing around with turning the PPEC debug on and off, sometimes the order would go through sometimes it wouldn't.

Guess I can check with Hosting Provider to see if they changed anything. Then try to remember the addons I have and check those. I think fast and Easy Checkout is the only one.

Ughh :wacko:

Thanks!

23 Sep 2011, 12:56 PM
#5
ahaynes106 avatar

ahaynes106

New Zenner

Join Date:
Oct 2009
Posts:
38
Plugin Contributions:
0

Post #5 by ahaynes106

I am not a to sure what all the PayPal log files mean, but during my test purchase this morning, it did the usual loop where I logged into PP twice to get the order to go through. Of the multiple log files generated, one them contains the following:

Sep 23 2011 8:38 -- CURL response: VERIFIED

Sep 23 2011 8:38 -- IPN INFO (cl) - Confirmation/Validation response VERIFIED

Sep 23 2011 8:38 -- Breakpoint: 1 - Collected data from PayPal notification

Sep 23 2011 8:38 -- Breakpoint: 2 - Validated transaction components

Sep 23 2011 8:38 -- Breakpoint: 3 - Communication method verified

Sep 23 2011 8:38 -- Breakpoint: 4 - Details: txn_type=unknown ordersID = 0 IPN_id=0

Relevant data from POST:
txn_type = unknown
parent_txn_id = None
txn_id = 4VS2317816234613C

Sep 23 2011 8:38 -- Breakpoint: 5 - Transaction type (txn_type) = cart [parentLookup=unknown]

Sep 23 2011 8:38 -- Breakpoint: 5 - midstream checkpoint

Sep 23 2011 8:38 -- Breakpoint: 5 - Record does not need to be processed since it is not new and is not an update. See earlier notices. Processing aborted.

Not sure what is causing the Processing aborted in Breakpoint 5, but then I am not familiar with these files. Help appreciated.

23 Sep 2011, 1:07 PM
#6
drbyte avatar

drbyte

Sensei

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

Post #6 by drbyte

If you're really using the Express Checkout module, and not the Standard/IPN module, then the ipn log files are irrelevant to the symptoms you're encountering.

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

23 Sep 2011, 1:12 PM
#7
ahaynes106 avatar

ahaynes106

New Zenner

Join Date:
Oct 2009
Posts:
38
Plugin Contributions:
0

Post #7 by ahaynes106

DrByte:

If you're really using the Express Checkout module, and not the Standard/IPN module, then the ipn log files are irrelevant to the symptoms you're encountering.

Ok. Thanks!
That file just seems to pop up when the loop happens. Express is the only payment module enabled. So, why would the ipn log file get generated?

23 Sep 2011, 7:40 PM
#8
drbyte avatar

drbyte

Sensei

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

Post #8 by drbyte

The IPN log file is generated because every PayPal transaction generates an IPN that gets sent to your store. That step-5 that says it's aborting is because it realizes that it doesn't need to insert a payment notice because it's an EC transaction which doesn't need to rely on the IPN for order creation.

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