Zen Cart Logo
Forums / Bug Reports / [Done v1.3.9e] 1.3.9d duplicate orders

[Done v1.3.9e] 1.3.9d duplicate orders

Locked

Views: 5,461

Results 21 to 34 of 34
This thread is locked. New replies are disabled.
28 Aug 2010, 3:09 AM
#21
justin2010 avatar

justin2010

New Zenner

Join Date:
May 2010
Posts:
52
Plugin Contributions:
0

[Done v1.3.9e] 1.3.9d duplicate orders

zip file uploaded and messege sent to you via PM, thank you again.

28 Aug 2010, 3:42 AM
#22
justin2010 avatar

justin2010

New Zenner

Join Date:
May 2010
Posts:
52
Plugin Contributions:
0

Re: [Done v1.3.9e] 1.3.9d duplicate orders

Dear Doctor,

I know you may already went to bed as it's midnight there. While waiting for your reply, I switched the store to showcase instead of switching back to IPN, hoping it can be solved easily with your help, then I don't have to switch back again. If you need to register a user in my store to test, please let me know.

Thank you very much!

Justin

28 Aug 2010, 3:50 AM
#23
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9e] 1.3.9d duplicate orders

Rather than turning off ordering capability, I'd recommend leaving it open to purchases ... and if IPN normally works fine short of an occasional duplicate order, I think that'd be your best approach for now. I'm somewhat doubtful that the PayPal logs will show anything conclusive. More important would be your server's error log records showing the cause of the 500 error.

28 Aug 2010, 4:02 AM
#24
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9e] 1.3.9d duplicate orders

The logs show that the DoExpressCheckoutPayment transaction attempts are being submitted twice, which suggests that you're clicking the submit button on the order-confirmation screen multiple times, or refreshing the page after it's already been submitted. The first is going through and being approved, and the second is being rejected because it was already completed and it's preventing you from submitting a duplicate.

I'm puzzled about why you're experiencing the time delays that are tempting you to do the multiple clicking or page refreshing.

28 Aug 2010, 4:08 AM
#25
justin2010 avatar

justin2010

New Zenner

Join Date:
May 2010
Posts:
52
Plugin Contributions:
0

Re: [Done v1.3.9e] 1.3.9d duplicate orders

I did NOT click more than once. I am very sure about this.

28 Aug 2010, 4:18 AM
#26
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9e] 1.3.9d duplicate orders

Sorry, I'm not trying to be accusational.
Merely stating that the logs show multiple attempts of the exact same data ... and that has to be initiated by the customer's browser. Maybe it was just a page-refresh attempt when it appeared to be frozen? And on two separate occasions.

Again, very puzzled about the cause of the timeout. Everything else looks to be functioning normally, in fact very well.

28 Aug 2010, 4:23 AM
#27
justin2010 avatar

justin2010

New Zenner

Join Date:
May 2010
Posts:
52
Plugin Contributions:
0

Re: [Done v1.3.9e] 1.3.9d duplicate orders

Because I used IPN before, so when I switched to express checkout, should I change something in PayPal?

for instance, in IPN, I need to do this,
"in Website Payments Preferences set your Automatic Return URL to:
https://MYSTORE.COM/store/index.php?main_page=checkout_process "

But I noticed in express checkout, I don't have to do it. Does it mean I should go to PayPal and turn it off?

I am not sure about how these work but just feel kind of desperate to fix it, so please don't laugh on my opinions.

28 Aug 2010, 4:29 AM
#28
justin2010 avatar

justin2010

New Zenner

Join Date:
May 2010
Posts:
52
Plugin Contributions:
0

Re: [Done v1.3.9e] 1.3.9d duplicate orders

DrByte:

Sorry, I'm not trying to be accusational.
Merely stating that the logs show multiple attempts of the exact same data ... and that has to be initiated by the customer's browser. Maybe it was just a page-refresh attempt when it appeared to be frozen? And on two separate occasions.

Again, very puzzled about the cause of the timeout. Everything else looks to be functioning normally, in fact very well.

I never think you tried to accuse me anything instead I know you are trying to help even thought it's midnight for you. I very appreciate your help.

But truly, I didn't click more than once on the button, and I didn't click on the refresh button of the browser. I was testing, and I was very patient to wait for the result.

But your finding reminds me those customer who got duplicated orders. Perhaps they didn't click more than once either. But I really don't know what's wrong.

28 Aug 2010, 4:34 AM
#29
justin2010 avatar

justin2010

New Zenner

Join Date:
May 2010
Posts:
52
Plugin Contributions:
0

Re: [Done v1.3.9e] 1.3.9d duplicate orders

The time delay was strange. In fact, when I tested it, every time I clicked the "Pay Now" button, I received those notification emails from PayPal within seconds. But then the browser froze. Then minutes later, it show the error messege.

It's your midnight. If you want to leave please feel free to do so. Just let me know so I won't wait. Thank you.

28 Aug 2010, 4:44 AM
#30
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9e] 1.3.9d duplicate orders

justin2010:

Because I used IPN before, so when I switched to express checkout, should I change something in PayPal?

for instance, in IPN, I need to do this,
"in Website Payments Preferences set your Automatic Return URL to:
https://MYSTORE.COM/store/index.php?main_page=checkout_process "

But I noticed in express checkout, I don't have to do it. Does it mean I should go to PayPal and turn it off?

I am not sure about how these work but just feel kind of desperate to fix it, so please don't laugh on my opinions.Even using Express Checkout you still want to leave the Website Payment Preferences option for IPN Notification enabled and with the URL pointing to your site's ipn_main_handler.php. That way your store will still receive the IPN notices applicable to order updates such as refunds, etc. (Using Express Checkout just makes your store not have to rely on receiving IPNs to activate orders in your store, and that's good since IPN timing is unreliable at best.)

As for Automatic Return URL, that can be left alone, or removed, if you're not using Website Payments Standard/IPN module. If you're doing eBay or something you'd likely want it pointed to your eBay store, for example.

In both cases, Zen Cart doesn't care what those values are set TO, just that they're set to something valid and enabled ... whether using IPN/WPS or Express Checkout.

28 Aug 2010, 4:46 AM
#31
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9e] 1.3.9d duplicate orders

justin2010:

It's your midnight. If you want to leave please feel free to do so. Just let me know so I won't wait. Thank you.I have no more special ideas tonight.

I do wonder if the duplicates you were seeing earlier might also be a result of the same freezing problem happening for those customers at that time.
I wonder if they can tell you anything more about their experience?

28 Aug 2010, 4:54 AM
#32
justin2010 avatar

justin2010

New Zenner

Join Date:
May 2010
Posts:
52
Plugin Contributions:
0

Re: [Done v1.3.9e] 1.3.9d duplicate orders

The customer who got the problem this morning did mention the browser freeze, and then being kicked out from the store. It seems like my experience this afternoon. However, when I tried this morning right after Igot the customer's messege, it was ok for me (when it was still IPN, not express checkout. But now I am using express checkout and I got this problem. )

Anyway, this is enough for today. Please rest, and thank you very very very much from the bottom of my heart!

Justin

29 Aug 2010, 12:59 AM
#33
justin2010 avatar

justin2010

New Zenner

Join Date:
May 2010
Posts:
52
Plugin Contributions:
0

Re: [Done v1.3.9e] 1.3.9d duplicate orders

Weird thing...

I tried this afternoon using my credit card. After I click the "Pay Now", it froze again. I thought it's gonna fail again, but almost 1 minute later, my store show up. It FINALLY starts working. Then I tried the express checkout with PayPal using my personal paypal account, it went fast without any problems.

I really have no idea how and why. My best guess is in the last 24 hours there was something wrong between my hosting server and PayPal, possibly some sort of traffic jam? But finally someone on either/both sides fix it?????

Anyway, now it works. But I will keep an eye on it. If same thing happen, I shall report to the forum.

Thank Dr.Byte's help last night. :clap:

Justin

29 Aug 2010, 6:31 AM
#34
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9e] 1.3.9d duplicate orders

Yay! Must have just been something amuck with the server or PayPal. Quite unusual in my experience.