Hi all,
we have a Magento 1.7.0.2 shop that has been working fine for years.
Since a few days we have the problem that some (not all, about 20%-30%) of the orders with PayPal, after payment, appear in the order overview as "Complete", the order is cancelled.
According to the transaction log, the order is cancelled one second before the payment is confirmed via IPN.
Does anyone have any idea what this could be?
(Info: The payment came in normally with PayPal, the customer did not cancel the order! Nothing has been changed on our side, no PHP updates etc.)
(P.S: Sorry for crossposting this in the german & english forums - but no answer received in the German forums. We're also not the only ones with this issue)
The same problem here since Sept. 14, 2018 with almost every order.
1-3 seconds before paypal ipn sends "completed" a "cancelled" status is set!? Why?
Same thing here for about a week.
Did you find anything to prevent this from happening?
We use Magento 1.8
It looks like PayPal has an order status issue have you tried to contact the customer service?
you should check out PayPal's customer service page.
We also recommend checking PayPal Refund.
to see if they have any updated information.
Same issue here for us - PayPal Standard on 1.7.0.2 intermittently setting orders to Cancelled before PayPal IPN notification of "Completed" which seems to bypass the order halting at the "Processing" stage and goes straight to "Complete". We use Brightpearl to pick up new orders, and these orders are not being received as they are already set to "Completed". Intermittent as some PayPal orders go though fine as expected.
We were able to find a (dirty) workaround, but just redirecting calls to /paypal/standard/cancel to some other page
Insert this into index.php:
if (strpos($_SERVER["REQUEST_URI"], '/paypal/standard/cancel') !== false) { header("Location: http://<your customer gets redirected here>"); die(); }
The drawback is that Paypal-orders don't get deleted anymore, also if the customer cancels the order on PayPal. In these cases you need to cancel the order yourself. Still easier than the other way round....
It's of course not an ideal situation, but it helps for the moment.
I think I found a pattern for those paypal orders status problems.
All paypal orders being canceled and then status changed to complete, have the same values in fields address 1 and address 2. Do you guys have this too in your paypal orders problems?
It must be a problem within paypal module address verification. I googled this and found the following possible solution :
In file /app/code/local/Mage/Paypal/Model/Api/Standard.php
Change :
$request['address_override'] = 1;
to :
$request['address_override'] = 0;
Would this work?
Interesting find @whaazza...! From our orders all but one (about a dozen in total) have matching fields. Not address1 and address2 always, but sometimes address2 and city are duplicates also, and these cause the cancelled->processing->complete issue.
The one that doesn't have a duplicate looks like an anomaly from the rest, but the address does have multiple comma separated addresses for address1, and address2 is blank. And the city also has a space in it after the single city name (which I wouldn't think would cause issues??!)
Going to test this fix to set address_override to 0 - see if this helps.
Steve
Hi steve
Unfortunately the set address_override to 0 doesn't change anything, I tested it.
The only thing that helps so far is Sabbi's workaround to redirect calls to standard/cancel to some other page.
Good to know that addresses fields seem to cause your problem too, at least there seems to be a pattern there...
Hmmm, that is odd, as I have had a couple of orders come through with double address fields, and they have successfully completed without the "Cancel" stage happening. Have dozens of orders without issue, and these small few that seem to work now? Perhaps it does do something, or PayPal has adjusted something their end?
Steve