adyen-magento2
adyen-magento2 copied to clipboard
Order is moved to status "closed" after shipment if notification processing failed before
Bug Description
If a payment notification could not get processed at the first try (e.g. due to a deadlock exception) the order is moved to state closed after an shipment is created even though it has not been refunded.
With #1787 the Adyen module should be able to correctly handle failures that occur while processing notifications. However, it seems that this bug was overlooked during testing.
To Reproduce Steps to reproduce the behaviour:
- Create a new order.
- "Fake" an exception during notification processing (e.g. a Deadlock exception).
- Make sure that the notification gets processed after it failed for the first time (and therefore the order status is "processing").
- Ship the order.
- Take not that the order is in status "closed" instead of the desired status "complete".
Expected behaviour Order is moved to status "complete".
Magento version 2.4.3-p3
Plugin version 8.11.1
Additional context This issue is independent of browser or OS.