magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.45k stars 9.29k forks source link

Paypal some orders fail with main.CRITICAL: Wrong order ID: #15427

Open BezV8 opened 6 years ago

BezV8 commented 6 years ago

When using paypal express integration as the payment method on Magento 2.2.2 a small number of orders fail after the payment has been taken by paypal. No order is registered in Magento, but paypal takes payment and sends a confirmation to both customer and store owner.

Looking in the logs the error which seems to be associated with these orders failing is: main.CRITICAL: Wrong order ID: "000000222". {"exception":"[object] (Exception(code: 0): Wrong order ID: \"000000222\". at .../vendor/magento/module-paypal/Model/Ipn.php:140)"}

Preconditions

  1. Magento 2.2.2
  2. Paypal Express Checkout set as Payment method.

Steps to reproduce

  1. Customer Places Order
  2. Directed to PayPal page and payment taken
  3. Redirected to site, order fails and is not logged in Magento.

Expected result

  1. Once payment has been taken and the customer has been redirected back to the site order is registered with magento.

Actual result

  1. Payment is taken.
  2. Paypal redirects to site and sends confirmation email with correct order number.
  3. Order is not registered in magento.
  4. Order ID skips failed order (next order number is incremented from failed order, orders list in backend has a gap where failed order would have been).
Rohaty commented 1 year ago

Hi,

i have the same problem in magento 2.4.5-p1 in case the customer is logged in magento and make paypal payment. An error will appear

main.CRITICAL: Exception: The "40030822" order ID is incorrect. Verify the ID and try again. in /bitnami/magento/vendor/magento/module-paypal/Model/Ipn.php:147

At the same time, which is a problem, if I create an invoice for such an order, this invoice will be created twice, e.g. 10000201, 10000202.

If the customer is not logged in and makes the payment via paypal, there is no problem.

JoostWan commented 1 year ago

Same issue over here on version 2.4.6

jdereus87 commented 9 months ago

Experiencing this issue with a 2.4.6-p3 installation.

29 {main} {"exception":"[object] (Exception(code: 0): The \"000207577\" order ID is incorrect. Verify the ID and try again. at /data/web/magento2/vendor/magento/module-paypal/Model/Ipn.php:147)"} []

[2023-11-16T09:19:45.962002+00:00] main.CRITICAL: Exception: The "000207565" order ID is incorrect. Verify the ID and try again. in /data/web/magento2/vendor/magento/module-paypal/Model/Ipn.php:147 Stack trace:

naseeraslam commented 9 months ago

I am facing the same issue on Magento 2.4.4. The payment is successful on the PayPal side, but there is no corresponding order shown in the admin sales order grid.