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.53k stars 9.31k forks source link

Order status pending payment not changing to processing after invoicing #26541

Closed shyam100379 closed 4 years ago

shyam100379 commented 4 years ago

Order status is not getting updated from pending payment to processing once invoice is generated. When a customer choose payment option and click order, he/she will be redirected to payment gateway making that order as pending payment. Somehow the order is not fulfilled and order stays as pending payment.

Preconditions (*)

  1. Magento 2.3.2
  2. Single store
  3. Payment method which makes redirect to that corresponding payment gateway once order is clicked.

Steps to reproduce (*)

  1. Customer comes to checkout page and fills all needed information.
  2. Once clicking order, Magento sets pending payment as order status.
  3. Somehow customer didnt completed order, store user contact them personally and arrange cod or something, the invoice is generated.
  4. Pending payment status not changing to processing or complete even after invoice and shipment is generated.

Expected result (*)

  1. Pending payment status need to change to processing once invoice is generated.
  2. Processing turns complete once shipment is generated.

Actual result (*)

  1. Order status stays as pending payment even after shipment is generated
m2-assistant[bot] commented 4 years ago

Hi @shyam100379. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

@shyam100379 do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?


m2-assistant[bot] commented 4 years ago

Hi @ajijshekh123. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

shyam100379 commented 4 years ago

Hi didnt anybody checked the mentioned issue. Its seems their is a bug in the system, order status from pending payment not getting updated even if that order is marked as complete. Please advise.

m2-assistant[bot] commented 4 years ago

Hi @sedonik. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:


sedonik commented 4 years ago

Hi

Cause I didn't reproduce moment when after Payment Getaway it lefts status "pending_payment'. I've only changed status in DB. Here is a screenshot where should be set (in item #26541).

pending_payment

I've added one more case when order is checked of status. It validates is status "pending_payment" then set "processing" status to order. Here is PR

aqdennis commented 4 years ago

Facing the same problem in versions 2.3.2.
We use Mollie Payments as our PSP and after successful payment invoice is automatically generated, but status remains on Pending, hence neither we nor the client will receive a confirmation e-mail.... I've tried the fix as described in https://github.com/magento/magento2/issues/18148, but without result.

woutersamaey commented 4 years ago

I also have a store facing this issue. The invoice is created + marked as paid. The total due amount drops to 0, but status stays "pending payment".

My case is with a custom built payment module that extends the now deprecated \Magento\Payment\Model\Method\AbstractMethod

Perhaps this is related somehow to the deprecation of this model?

m2-assistant[bot] commented 4 years ago

Hi @ihor-sviziev. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

ihor-sviziev commented 4 years ago

Hi @woutersamaey, This issue duplicates https://github.com/magento/magento2/issues/25659 that was already fixed. I'm closing this issue as duplicate