The MDVA-31006 patch fixes the issue where using the PayPal Express checkout payment creates duplicate orders with a 10415 error. This patch is available when the Quality Patches Tool (QPT) 1.0.6 is installed. The issue was fixed in Adobe Commerce 2.4.2.
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the QPT landing page. Use the patch ID as a search keyword to locate the patch.
The user is not being sent to the Adobe Commerce order success page, so they refresh the blank page, and the second order is placed, causing duplicate orders.
Adobe Commerce is installed.
PayPal Express checkout payment is configured.
Log in to the Commerce admin. Go to Stores > Configuration > Sales > Payment Methods > select Paypal Express Checkout > Configure > Advanced Settings > Skip Order Review Step > No.
Steps to reproduce:
Log in as a user.
Select an item and click Add to Cart.
Click on the cart and click Proceed to Checkout.
Proceed to the PayPal Express window and make a payment.
You are redirected to the Adobe Commerce Order Review Page.
Press the Place Order button.
Emulate system error due to server infrastructure issues. The user will see a blank page.
Refresh the page.
The customer is redirected to the Order Review page and sees an error message “A successful payment transaction has already been completed. Please, check if the order has been placed.”
In the payment.log, which is located in /var/log/payment.log, there is an error 10415, but only one order was created.
As the customer is not sent to the Adobe Commerce order success page, they refresh the blank page, and a second order is placed, so two duplicated orders are created.
In the payment.log, which is located in /var/log/payment.log, there is an error 10415.
Apply the patch
To apply individual patches, use the following links depending on your deployment method: