The observer class used to update all orders' status regardless of checking the payment method. Ideally, this observer had to run for orders with adyen_paypal_express payment method. In addition, since the observer has the same name with the SubmitQuoteObserver in Adyen Payment plugin for Magento 2 repository, it used to override the former one.
This PR introduces a fix to these two issues via refactoring the the code to update the condition and rename the observer class and observer name in the events definition file.
Summary
The observer class used to update all orders' status regardless of checking the payment method. Ideally, this observer had to run for orders with
adyen_paypal_express
payment method. In addition, since the observer has the same name with the SubmitQuoteObserver in Adyen Payment plugin for Magento 2 repository, it used to override the former one.This PR introduces a fix to these two issues via refactoring the the code to update the condition and rename the observer class and observer name in the events definition file.
Tested scenarios
Fixes #129 Fixes #131