Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Built-in Shipping and Payment Modules / checkout_success is showing wrong order with Paypal Standard

checkout_success is showing wrong order with Paypal Standard

Locked

Started by istarin on 29 Oct 2009, 4:53 AM · Views: 909

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
29 Oct 2009, 4:53 AM
#1
istarin avatar

istarin

New Zenner

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

checkout_success is showing wrong order with Paypal Standard

Good day!
I hope this is the right section and I have searched forums for solution to my problem, unsuccessfully.

SO, payment module used is "PayPal IPN - Website Payments Standard".
After client is redirected from paypal having successfully paid for chosen product the checkout_success page is shown for previous product not the one that just have been bought. After page reload everything looks fine and order history is OK. Looks like the order insert query is happening after the page is loaded. I've temporarily put sleep(1) in a header of checkout_success and it works but there should be a better solution for this. Any thoughts please?

29 Oct 2009, 5:15 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: checkout_success is showing wrong order with Paypal Standard

You have 4 options:

  1. Use what you've got with your customization.

  2. Use Express Checkout instead ... Express doesn't have to wait for PayPal's server to talk to your server in the background to tell it of the new order.

  3. Rewrite the whole way Zen Cart and the PayPal IPN module work so order details are handled differently.

  4. Call PayPal and get them to make their communications from their server to your server faster than it already is. While you're at it, get your hosting company to speed up their connection to the internet and speed up the processing speed of your webserver.

I vote for #2, or if you don't like that, use #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.

29 Oct 2009, 5:26 AM
#3
istarin avatar

istarin

New Zenner

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

Re: checkout_success is showing wrong order with Paypal Standard

Well, surely #2 is the only realistic(not counting #1) for me, I think I had some problems before with Express Checkout but I'll try.
Thank you very much for your answer.