| Project: | Ubercart Contributions |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
A search brought up posts regarding this issue from 2 years ago, but nothing currently. Whatever the problem was, it's still here.
I have a fairly standard installation -- no custom modules, all CA predicates are default except for the wording on some of the emails, everything is up to date. (Ubercart 6.x-2.4)
The trigger: Customer completes checkout has 3 predicates -- 1 to email the admin, 1 to email the customer, and 1 to update order status. All 3 of them are being executed twice, whenever the payment is made by PayPal. I have seen only 2 orders where this did not happen. This does not seem to happen when payment is processed through the on-site merchant account.
Not only does this give my customers double the allowed file access, but it also annoys them with duplicate emails.
Isn't 2 years long enough to fix this problem?
From what I can tell, this is happening when PayPal's IPN is being processed. For some reason, the order status is being set to Completed before receiving the IPN, and when the IPN comes through, the code is not checking to see if the status is already completed before setting it.
I thought I remembered a setting for what status to assign PayPal orders, but I cannot find it now. Perhaps I'm remembering something else.
Any help on this issue would be greatly appreciated.
- Alan
