We have a client who is currently using Magento 2.3.3 and is having an intermittent issue with transactions coming from PayPal. Very occasionally there is an order which is marked as "Complete" as it arrives in the Dashboard.
As you can imagine this is very frustrating as it makes processing very laborious as each order needs to be verified manually to ensure it has been processed and not just marked as complete.
Can anyone shed any light on what we may be able to change to rectify this issue?
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;