Subscribe to order payment state change

Hi!

I wonder if it’s possible to subscribe to the order payment state machine state change.

I have found this link in the docs but it talks about the related states witch is not going to work for me (or maybe I’m mistaken?).

The reason why I want to subscribe to the state change is because I want to log these changes. If this is not possible then I wonder if Litium stores any payment state changes on the order and if so how can I get them?

Litium version: 7.2.3

You need to focus on OrderState e.g when DeliveryState is set to “Delivered” then PaymentState is set to Paid and OrderState is set to Completed.