CheckoutController and formPage method, troubles with checkout flow

If you are having any problems with checkout flow (designing custom checkout flow or new payment gateway) check in 

Drupal\commerce_checkout\Controller;  

and see formPage method, debug it and you can track what is step sent from URL, what is step set in order and do they match and adjust accordingly when needed.