Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ECP-9538] Orders Stuck in Pending Status Due to Empty adyenOrderPayments Parameter #2758

Open
jvrodriguesgranado opened this issue Sep 27, 2024 · 4 comments
Assignees
Labels
Bug report Indicates that issue has been marked as a possible bug

Comments

@jvrodriguesgranado
Copy link

Describe the bug
Hello,

I'm encountering an issue where some orders in my Magento 2 e-commerce store remain stuck in the "pending" status. After investigation, I identified the problem within the compareAdyenOrderPaymentsAmount function, located in the adyen/module-payment/Helper/AdyenOrderPayment.php file.

To Reproduce
I was unable to reproduce this issue in a local environment, but I added a log in the production environment to gather evidence. I encounter around 5 orders daily with this problem. Even though the payment is approved in the Adyen dashboard, the order status remains "pending" in Magento.

Magento version
2.4.6-p4

Plugin version
9.8.1

Screenshots

image
image
image

@jvrodriguesgranado jvrodriguesgranado added the Bug report Indicates that issue has been marked as a possible bug label Sep 27, 2024
@candemiralp candemiralp self-assigned this Sep 30, 2024
@candemiralp
Copy link
Member

Hello @jvrodriguesgranado,

Thank you for raising this issue. The issue that you have described sounds very similar to a known issue due to having synchronous database replication of Adobe Commerce enabled.

Could you please try disabling synchronous database replication and observe the system?

Best Regards,
Can

@jvrodriguesgranado
Copy link
Author

I spoke with our architecture team at Granado, and we are unable to implement the suggested solution. Since this is a recommendation from Adobe, we cannot risk losing the benefits defined by Adobe for this functionality, particularly scalability:

Provides data backup
Enables data analysis without affecting the master database
Scalability

@jvrodriguesgranado
Copy link
Author

Hello, is there any update regarding this issue? It is still occurring in our production environment.

@candemiralp
Copy link
Member

candemiralp commented Oct 28, 2024

Hello @jvrodriguesgranado,

Thank you for sharing your insights. Currently, there is no solution to concrete solution to this issue. Adobe proposed the solution to disable the synchronous replication.

The reason behind the issue is that Adobe Commerce instance writes the data to DB instance A and tries to fetch the data on the next line immediately from DB instance B. IMO, this is related to synchronisation performance of Adobe Commerce.

You can check this line where the issue occurs. I will keep this issue open for further internal discussions and external recommendations.

Best Regards,
Can

@candemiralp candemiralp changed the title Orders Stuck in Pending Status Due to Empty adyenOrderPayments Parameter [ECP-9538] Orders Stuck in Pending Status Due to Empty adyenOrderPayments Parameter Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Indicates that issue has been marked as a possible bug
Projects
None yet
Development

No branches or pull requests

2 participants