Closed (fixed)
Project:
Ogone | Ubercart payment
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
25 Feb 2011 at 14:04 UTC
Updated:
16 May 2011 at 10:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
pistol commentedAddition: the stock is sometimes reduced 2 or 3 times, the orderreceipt is always sent out twice.
I does not depend whether i am logged in or not prior to my purchase
Comment #2
drummComment #3
drummThe attached patch simplifies the order completion process so it is faster and has less chances to work incorrectly. Building on #954290: Save Pay ID for future payment reference., it does know about duplicates. However, it does not completely solve the problem due to a general bug in Ubercart, #644538: Duplicate order notification e-mail, and duplicate stock decrement.
Comment #4
drummComment #5
drummCommitted.
Comment #6
spoit commentedMoving the redirect to ''cart/checkout/complete" from uc_ogone_ok to uc_ogone_return_ok emptied our $_SESSION variables for anonymous users after payment completion.
Before redirecting the $_SESSION['do_complete'] was set, but after the redirect it was gone. Shifting this redirect back to the uc_ogone_ok callback made things working again.
While, as I see it, the uc_ogone_ok and uc_ogone_false functions are indeed obsolete, there seems to be a reason why it was made this way.