magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Transaction parent-child relationship inconsistent from summary table from details view.

Open archerv1976 opened this issue 5 months ago • 2 comments

Preconditions and environment

  • Magento version 2.4.8
  • Setup a payment that can do Auth and Capture,

Steps to reproduce

  1. In Frontend, create an order and make payment with Auth transaction
  2. In Admin > Sales > Orders, select the order from step 1 > Invoice (tab) > Capture Online [ Submit Invoice]
  3. Go to Transactions left menu - display the summary table of transaction
  4. Click one of the transaction to see the details.

Expected result

Under the detail view of the parent transaction "Auth" should have a "Child Transaction" that point to the "Capture" transaction.

Actual result

Under the detail view of the parent transaction "Auth" has a "Child Transaction" that point to the "Auth" itself.

Additional information

  • Magento version 2.4.8

The transaction issue is related to parent - child relationship. Noticed that in the transaction table summary it shows the correct relationship but when viewing the transaction details (clicking the Auth row which is the parent), the child transaction is referring to its own.

I attached my investigation and showed where the possible wrong assignment exist

mage248-txn-parent-child-rel-issue.pdf

Release note

No response

Triage and priority

  • [x] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • [ ] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • [ ] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • [ ] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

archerv1976 avatar Jun 16 '25 00:06 archerv1976

Hi @archerv1976. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.


Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

m2-assistant[bot] avatar Jun 16 '25 00:06 m2-assistant[bot]

Hi @engcom-November. 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:

  • [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • [ ] 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • [ ] 4. Verify that the issue is reproducible on 2.4-develop branch
    Details- If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
  • [ ] 5. Add label Issue: Confirmed once verification is complete.
  • [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.

m2-assistant[bot] avatar Jun 16 '25 04:06 m2-assistant[bot]

Hello @archerv1976 ,

Thank you for your report and collaboration.

Could you please confirm if you are experiencing issues with any other payments as well?

Hence we marking this issue as "Needs Update"

Thank you!

engcom-November avatar Jun 25 '25 06:06 engcom-November

Hello @archerv1976 ,

Follow up on the above comment.

Thank You!

engcom-November avatar Jul 01 '25 14:07 engcom-November

Hi @engcom-November,

Confirmed that when using Stripe the problem still exist. Screenshot below:

Image

clicking the ID 231 (auth)

Image

  • The child transaction is referring to itself, the expected is ID 232

clicking the ID 232 (capture)

Image

  • no child exist, the expected is ID 233

again, summary shows exactly the correct one but the details has problem.

I am confident that this issue is inside magento 2.4.8, I pointed out the source of the problem as I submitted this issue, all payments are affected with this problem.

archerv1976 avatar Jul 01 '25 23:07 archerv1976

Hello @archerv1976 ,

Thank you for your confirmation.

Based on our analysis, this issue appears to be related to the Stripe payment module. We recommend reaching out to the Stripe support team for further assistance.

As a result, we will proceed with closing this issue for now. Please don’t hesitate to reach out if you encounter any other issues or need further support.

Thank you once again!

engcom-November avatar Jul 02 '25 13:07 engcom-November

Hi @engcom-November,

The response I sent to you is about your request to replicate using different payment gateway and so I used stripe to test if this happen too.

This problem impacts all different payment gateways in our testing.

As you notice I investigated the issue and provided you the details of where is the issue coming from. Please check the PDF I attached when I issue the bug.

This is magento code: Image

The "authorization" cannot have the same parent ID of its own.

Please reopen this issue.

Cheers,

Archer

archerv1976 avatar Jul 08 '25 03:07 archerv1976

Hello @archerv1976 ,

Thank you for your report and collaboration.

We attempted to reproduce the reported issue on the 2.4.8 instance by installing the Stripe payment method. However, we were unable to replicate the issue. For your reference, please find the attached screenshot.

Image Image Image

Steps we followed:

  • On the frontend, created an order and completed payment using an Auth transaction.
  • In the Admin panel:
  • Navigated to Sales > Orders,
  • Selected the order from Step 1,
  • Opened the Invoice tab and clicked Capture Online [Submit Invoice].
  • Navigated to Transactions from the left menu to view the transaction summary table.
  • Clicked on a transaction to view its details.

Based on our findings, we are marking this issue as "Needs Update".

Thank you once again!

engcom-November avatar Jul 15 '25 12:07 engcom-November

Hi @engcom-November,

Thank you for your feedback and investigation.

From your screenshot you just replicated the issue.

If you look at your 2nd screenshot under Child Transactions you will see the problem. As I mentioned and pointed out in my previous description.


Taken from my screenshot


Image

Taken from your screenshot


Image

The expected child should be the "Capture" and not "Auth" itself.

Thank you, Archer

archerv1976 avatar Jul 15 '25 21:07 archerv1976

Hello @archerv1976 ,

Thank you for your report and collaboration.

We attempted to reproduce the reported issue on the 2.4.8 instance by installing the Stripe payment method. The issue is able to replicate in 2.4.8 instance and here is the attached screenshot for the reference.

Image

Steps we followed:

  • On the frontend, created an order and completed payment using an Auth transaction.
  • In the Admin panel:
  • Navigated to Sales > Orders,
  • Selected the order from Step 1,
  • Opened the Invoice tab and clicked Capture Online [Submit Invoice].
  • Navigated to Transactions from the left menu to view the transaction summary table.
  • Clicked on a transaction to view its details.

Hence marking this issue as "Issue:Confirmed"

Thank You!

engcom-November avatar Jul 16 '25 06:07 engcom-November

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-15167 is successfully created for this GitHub issue.

github-jira-sync-bot avatar Jul 16 '25 06:07 github-jira-sync-bot

:white_check_mark: Confirmed by @engcom-November. Thank you for verifying the issue.
Issue Available: @engcom-November, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

m2-assistant[bot] avatar Jul 16 '25 06:07 m2-assistant[bot]

@magento I am working on this

verity1886 avatar Sep 07 '25 19:09 verity1886

Hi @verity1886! :wave: Thank you for collaboration. Only members of Community Contributors Team are allowed to be assigned to the issue. Please use @magento add to contributors team command to join Contributors team.

m2-assistant[bot] avatar Sep 07 '25 19:09 m2-assistant[bot]

@magento add to contributors team

verity1886 avatar Sep 07 '25 19:09 verity1886

Hi @verity1886! :wave: Thank you for joining. Please accept team invitation :point_right: here :point_left: and add your comment one more time.

m2-assistant[bot] avatar Sep 07 '25 19:09 m2-assistant[bot]

@magento I am working on this

verity1886 avatar Sep 07 '25 19:09 verity1886