first I looked at the line `if (in_array($state, array(PaymentInterface::STATE_PENDING ...` I was surprised to see `$state` var. I missed its definition because it was done in the `addFlash` method call. Spent two seconds more then it should be (: