Adobe Commerce 2.3.7-p1 known issue: outdated order total for PayPal

This article provides a patch for a known issue in Adobe Commerce 2.3.7-p1: when using PayPal Checkout more than once customers get the previously ordered product in cart, instead of the new one they are trying to order.
You can download the patch from this article and it is also available through the Quality Patches Tool (QPT).

Affected versions

  • Adobe Commerce (all deployment options) 2.3.7-p1
  • Magento Open Source 2.3.7-p1

Issue

When placing an order by using PayPal Express Checkout payment method, the previously ordered purchased product is added into the order instead of the actual one.

Steps to reproduce:

  1. On the store front, add any product to the cart (product A, price $50).
  2. Click the cart link to open the cart.
  3. Click the PayPal Checkout button.
  4. Use your PayPal credentials to log in to PayPal and submit the payment.
  5. Finish order placement on the store side.
  6. Go back to the catalog and add a different product (product B, price $100) to the cart.
  7. Click the cart link to open the cart.
  8. Click the PayPal Checkout button.

Actual result:

Product price in the cart is $50 instead of $100.

On the store side, the order contains product A instead of the product B.

Expected result:

Product B is added to the order.

Solution

Apply the patch provided in this article.

Patch

Use the following link to download a .zip file containing the patch: MC42674-composer.patch.zip.

Compatible Adobe Commerce versions

  • Adobe Commerce (all deployment options) 2.3.7-p1

How to apply the patches

  1. Unzip the downloaded .zip file.
  2. See How to apply a composer patch provided by Adobe for further instructions.
recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a