If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / After paying with paypal, if user doesnt click "go back to merchant", Order doesnt go

After paying with paypal, if user doesnt click "go back to merchant", Order doesnt go

Locked

Started by bcbailey on 29 Nov 2006, 2:28 AM · Views: 14,327

Results 1 to 20 of 68
This thread is locked. New replies are disabled.
29 Nov 2006, 2:28 AM
#1
bcbailey avatar

bcbailey

New Zenner

Join Date:
May 2006
Posts:
18
Plugin Contributions:
0

Post #1 by bcbailey

Hello,

I have been using zen cart for awhile. The paypal plugin has worked for several transactions.

However, the latest transaction, the user finished the paypal payment, but then didnt click the "go back to merhcant" button.

Paypal sent me an email saying I received new funds, but Zen Cart didnt know the order went through. Now I have no idea what this customer ordered.

Can I force the order to go through before payment is even processed?

Thanks
--Ben

29 Nov 2006, 2:36 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #2 by ajeh

What version of Zen Cart are you using?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Nov 2006, 2:40 AM
#3
bcbailey avatar

bcbailey

New Zenner

Join Date:
May 2006
Posts:
18
Plugin Contributions:
0

Post #3 by bcbailey

umm... I dont know... It was brand new about 6 months ago.

my site is:
https://www.chermere.ca

How do I find out?

--Ben

29 Nov 2006, 3:24 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #4 by ajeh

Look in the Admin ... Tools ... Server Info ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Nov 2006, 3:28 AM
#5
bcbailey avatar

bcbailey

New Zenner

Join Date:
May 2006
Posts:
18
Plugin Contributions:
0

Post #5 by bcbailey

Hi,

Zen-Cart 1.3.0

Server OS: Linux 2.6.16.27-AMDv8 Database: MySQL 4.1.21-standard
Server Date: 11/28/2006 21:25:28 Database Date: 11/28/2006 21:25:28

Thanks for the quick reply

--Ben

29 Nov 2006, 3:45 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #6 by ajeh

Recheck your PayPal settings on PayPal's website ... make sure that you have the return URL, IPN, etc. enabled and configured ...

On occaision these get changed by PayPal ... no telling why ...

But in the v1.3.x we had made PayPal smarter than the average bear and know to return to complete the order regardless of if the customer returned back to the site ...

NOTE: you really need to upgrade to v1.3.6 ... there are a number of bugfixes and security issues that have been addressed since then plus the usually new features we like to add with each release ...

NOTE: with upgrades, it is always a good idea to save settings on all Shipping, Payment and Order Total modules and remove and install then re-configure them again for any new changes ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Nov 2006, 3:25 AM
#7
trippy1976 avatar

trippy1976

New Zenner

Join Date:
Nov 2005
Posts:
43
Plugin Contributions:
0

Post #7 by trippy1976

So if the customer does not come back to the site the order is never logged/completed at all?

I've had several recent instances (out of 2500+ orders) that the customer eventually gripes they never got their order. We ask for PP txn id and sure enough, it's there. Once we process the refund the order appears wtih the next order ID.

It would be MUCH better to have the order go into the system before going to PayPal and in a "payment pending" status and then later be updated. Then at least you can see these orders.

Based on what I am seeing - they are invisible until the customer returns from PayPal? Where in the database are they tucked? Order ID in the zen_orders table is an auto increment, which seems to indicate they are not stored there. Nothing else looks very obvious for a temporary table.

Anyone know how to address this problem? If (when) IPN fails, it appears we are left unawares of some orders that are actually paid.

30 Nov 2006, 3:31 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #8 by ajeh

I am saying in the v1.3.x series we changed it so whether or not the customer returns to the site we made PayPal smart enough to do so ...

Note: you are using a reall old version of Zen Cart ...

So I am not sure off the top of my head if the issues are in your old version or if there is something not correctly setup ...

Was this a clean install of v1.3.0 or an upgrade?

If an upgrade, what version did you upgrade from and how?

Do you have an URL to your site?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Nov 2006, 3:51 AM
#9
trippy1976 avatar

trippy1976

New Zenner

Join Date:
Nov 2005
Posts:
43
Plugin Contributions:
0

Post #9 by trippy1976

Mine is a clean install of 1.3.x

I do need to do updates, but the issue is not consistent. It's only 1 or 2 out of 100 or so orders. The orders were on the same day but hours apart. It's possible IPN was down during that time.

The larger issue is that the orders are completely invisible until some kind of IPN comes in. It's not so widespread to be that large of a problem, but without being able to see the orders at all, we can't check and change status manually. They are just not there.

This is what happens:

  • Customer places order
  • Click "confirm" and is sent to PayPal
  • Makes payment

Beyond that, I don't know, but what puzzles me is why the orders are not created in some kind of pending status when the user hits "confirm" and before they are sent for payment.

30 Nov 2006, 7:27 AM
#10
trippy1976 avatar

trippy1976

New Zenner

Join Date:
Nov 2005
Posts:
43
Plugin Contributions:
0

Post #10 by trippy1976

Ajeh,

Thanks for your help so far. If you can help me sort this out, it's definitely worth a big cup 'o coffee for the zen crew. :)

I know it's late... this post is just a prelude to hitting the sack myself, dreaming that I'll wake up to your magic answer :) Thanks in advance for any help at all.

30 Nov 2006, 8:41 AM
#11
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Post #11 by samad64

i think she's been giving you the answer all along

the PayPal module has had a ton of bugs and many of them were fixed in 1.3.6. you are using 1.3.0. If you were to upgrade your software, or at the absolute very least the paypal module, you wouldn't notice this happening again - it would return the info to Zencart even if the customer X's out of the paypal screen after payment and does not return to the site

30 Nov 2006, 10:31 PM
#12
trippy1976 avatar

trippy1976

New Zenner

Join Date:
Nov 2005
Posts:
43
Plugin Contributions:
0

Post #12 by trippy1976

I'll be upgrading as soon as possible, so we will see if it helps. The problem is - there's no way to check! You don't know if you are having the problem until (and if) a customer contacts you to complain that their order is held up. Often - this takes weeks. At least this is what I am experiencing.

What I am looking for is some info on how orders are handled by the system. Where do they go between the time the customer hits the "confirm" button and payment confirmation is received? They aren't in the zen_orders table. But in the cases I've experienced, they magically appear once the refund is processed - weeks later. So it has to be tucked away somewhere...

And if it's tucked away, until I upgrade to see if it helps - I need to be able to find any orders suffering from this and manually process them so my customers who paid can get their stuff.

In future updates of zen, it would be extra cool if the "where" for those orders in limbo was some kind of pending status. So the oder shows in the system the moment the confirm button is clicked. Then you don't really have to worry about glitches in the integration. At least the order is not lost.

1 Dec 2006, 1:15 AM
#13
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Post #13 by samad64

ah sorry, i thought you were looking for something else :P

In the downloads section.. theres a nice little utility made by Dr Byte called View Stuck PayPal orders (or something along those lines). It takes a little getting used to to see what its talking about.. but its handy because when you get payments via paypal but no order in zen, you can go into your admin panel, view stuck paypal orders and it shows basically everything that was sent to paypal. once you find the order (can take a while) you can see what products they bought and their total. the products they bought only show up as the product number, though, so though its a good contribution it can be pretty ocnfusing

1 Dec 2006, 2:23 AM
#14
trippy1976 avatar

trippy1976

New Zenner

Join Date:
Nov 2005
Posts:
43
Plugin Contributions:
0

Post #14 by trippy1976

Well, what I've found is if you can figure out which orders are missing, you can go to PayPal and refund $.01 on the order. Then it magically appears in the system as it would normally but with a refunded status. Then you just have to put it into paid status and you're good. Kind of a fudge, but it would work. The biggest challenge is finding the ghost orders.

I've been looking at the zen_paypal_sessions table and am wondering if that is the key. If it is, then there should be (theoretically) as many entries in zen_paypal as zen_paypal_sessions. If that's true - then the problem is MUCH more widespread than I originally thought. Yuck.

Thanks for the tip on the download thing.

1 Dec 2006, 3:07 AM
#15
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Post #15 by merlinpa1969

trippy,
rather than disecting this try to upgrade,
paypal orders are now stored and written, regardless if the IPN is triggered,

and GET iots not so much the module being buggy its the POS crap API that pay pal gives up....

Personal opinion, I wouldnt be surprised to see IPN phased out totally,

why keep it. its not profitable to them, they have paypal pro and paypal2.0

both get them a monthly residule

Zen cart PCI compliant Hosting

1 Dec 2006, 3:38 AM
#16
trippy1976 avatar

trippy1976

New Zenner

Join Date:
Nov 2005
Posts:
43
Plugin Contributions:
0

Post #16 by trippy1976

I understand 100% that it's probably a PayPal issue. The problem is that without the order being preserved - it becomes a big problem for me without a way to find and fix the orders that are "stuck" right now. Sounds like the update will help me with that greatly.

I've installed the view paypal sessions admin module, but I don't think that table is ever clearing. There are a couple thousand entries in it. In any event - I guess there is no way I can reasonably seek and fix the orders that are "stuck" right now. I'll just have to wait for the nastygrams from my customers.

I'll be upgrading ASAP, but I'm hesitant to do anything that goes too deep right in the middle of the holiday rush. At the same time, I'm trying to find a way to ensure I don't foul up any holiday orders that will lose me customers in 2007.

On the subject of PayPal... if Google Checkout gets more mature and I can snag a module for that, we'll be dumping PayPal anyway. I look at Google Checkout and cry that it's not really feasible to consider it as a payment method for us right now. I'd save upwards of $10,000 a year just on processing fees alone.

1 Dec 2006, 3:45 AM
#17
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Post #17 by merlinpa1969

If your doing that kind of business then why not dump the third party mess and use a true gateway?

Zen cart PCI compliant Hosting

3 Dec 2006, 4:14 PM
#18
drbyte avatar

drbyte

Sensei

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

Post #18 by drbyte

PayPal was having system problems on the day you were reporting your intermittent problems:
http://www.pdncommunity.com/pdn/blog?blog.id=mts_updates&page_of_message_id=36&date=1164690000000#M36

.
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 Dec 2006, 3:52 AM
#19
trippy1976 avatar

trippy1976

New Zenner

Join Date:
Nov 2005
Posts:
43
Plugin Contributions:
0

Post #19 by trippy1976

I figured out how to do what I wanted.

What we did is kind of roundabout but it worked as a workaround for now. I'll share for any who are on an older version and want to check. We will upgrade and hope it resolves this, but in the mean time...

We downloaded our PayPal history since the txn_id is stored there. We imported that into our MySQL database and did a SQL query to find all records in the PP history not in the zen_paypal table.

Once we located the missing payment items, we were able to quickly fix the issue by logging into PP and "refunding" $.01 on the order. This would make them pop into our system as refunded and then we just reset the status.

So like I said - a long way around, but we were able to find the affected orders and restore them doing this. After you do it once, you can just download the PP history from the last time you downloaded it and re-run the query. I found that it was mostly local to a few days, but we have had the issue on and off since around 11/15. It's possible the hammering of PayPal during the holidays is at play here and the rest of the year is a non-issue. Or there were sunspots or something those days. In any case, this is a path to finding missing orders.

I exported the results of the query (which shows the PP txn_id of the missing orders) into excel and then used the hyperlink function to build the URL:

https://www.paypal.com/us/vst/id=[txn_id]

Replace [txn_id] and it'll fire you straight into the record. We added this link to our order page too so you can jump straight from an order to the PP record, I forget which template I edited, but it was very easy and makes accessing paypal history for orders a little easier if you do it often.

14 Feb 2007, 7:09 PM
#20
mommydesigns avatar

mommydesigns

Zen Follower

Join Date:
Jul 2006
Posts:
135
Plugin Contributions:
0

Post #20 by mommydesigns

Sorry to re-awaken this one, but my client is also having this issue but only on larger orders.

Orders over $1000 seem to be inconsistently "lost". The transaction is going through to PayPal, the customer completes the transaction but the info isn't getting written back to Zen.

The cart is 1.3.7 - recently upgraded (about 10 days ago) from 1.3.6. The dropped orders were in the past day or so.

I have confirmed all the PayPal module settings as well as all the IPN settings in her PayPal account.

She is beyond frustrated and doesn't know how to proceed.

Thank you.

Oh... https://www.wahmieswholesale.com is the site.