MDVA-31006: Paypal Duplicate Orders 10415 error
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.
Affected products and versions
- Adobe Commerce (all deployment methods) 2.3.2 - 2.4.0
NOTE
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 Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
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.
Prerequisites:
- 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.
Expected results:
- 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.
Actual results:
- 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:
- Adobe Commerce or Magento Open Source on-premises: Software Update Guide > Apply Patches in our developer documentation.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in our developer documentation.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool released: a new tool to self-serve quality patches in our support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in our support knowledge base.
For info about other patches available in QPT, refer to Patches available in QPT in our developer documentation.
recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a